94% social-media-engine

Code Review | Social Media Engine

WordPress plugin Social Media Engine scored 94% from 54 tests.

About plugin

  • Plugin page: social-media-engine
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 5.8.1
  • First release: Nov 2, 2016
  • Latest release: Nov 5, 2016
  • Number of updates: 25
  • Update frequency: every 1.4 days
  • Top authors: kvasnyi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,591 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼149.67ms] Passed 4 tests

A check of server-side resources used by Social Media Engine
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1539.04 ▲14.76
Dashboard /wp-admin3.08 ▲0.0352.95 ▼22.48
Posts /wp-admin/edit.php3.14 ▲0.0352.30 ▼14.16
Add New Post /wp-admin/post-new.php5.44 ▲0.0196.98 ▼558.03
Media Library /wp-admin/upload.php3.03 ▲0.0235.07 ▼4.02

Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Media Engine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.76 ▲0.069.55 ▼1.9050.32 ▼2.91
Dashboard /wp-admin2,986 ▲556.00 ▼0.02162.53 ▼59.02112.14 ▼49.88
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0172.14 ▼13.7593.13 ▼17.90
Add New Post /wp-admin/post-new.php1,683 ▼018.73 ▲2.45417.80 ▼27.66113.26 ▲2.88
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01171.85 ▲6.56123.35 ▲5.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-engine/social-media-engine.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: social, social networking, follow links, social bookmarks, social links

social-media-engine/social-media-engine.php Passed 13 tests

"Social Media Engine" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
19 characters long description:
Social Media Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,363 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS21112,408
PHP15625164
Sass1340120

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin