10% easyrotator-social-add-on

Code Review | EasyRotator Social Add-On

WordPress plugin EasyRotator Social Add-On scored10%from 54 tests.

About plugin

  • Plugin page: easyrotator-socia...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Oct 11, 2012
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: DWUser.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,626 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/easyrotator-social-add-on/easyrotator-social-addon.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; EasyRotatorSocialAddOn has a deprecated constructor

Server metrics [RAM: ▼1.94MB] [CPU: ▼63.04ms] Passed 4 tests

Server-side resources used by EasyRotator Social Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.10 ▼41.23
Dashboard /wp-admin2.07 ▼1.276.35 ▼62.75
Posts /wp-admin/edit.php2.08 ▼1.286.73 ▼38.42
Add New Post /wp-admin/post-new.php2.07 ▼3.815.54 ▼109.76
Media Library /wp-admin/upload.php2.08 ▼1.155.19 ▼29.68

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for EasyRotator Social Add-On
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10014.45 ▼0.231.86 ▲0.1443.76 ▼0.25
Dashboard /wp-admin2,220 ▲204.87 ▼1.02104.63 ▼1.0940.98 ▲0.94
Posts /wp-admin/edit.php2,099 ▼42.00 ▼0.0138.03 ▼5.4935.38 ▼3.17
Add New Post /wp-admin/post-new.php1,542 ▼1223.28 ▲5.17680.99 ▲54.8663.76 ▲4.27
Media Library /wp-admin/upload.php1,402 ▲24.32 ▲0.0096.10 ▼15.3743.12 ▼3.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/easyrotator-social-add-on/easyrotator-social-addon.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; EasyRotatorSocialAddOn has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easyrotator-social-add-on/easyrotator-social-addon.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (A rotator with social sharing buttons enabled)
The official readme.txt might help

easyrotator-social-add-on/easyrotator-social-addon.php 92% from 13 tests

"EasyRotator Social Add-On" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easyrotator-social-add-on.php" instead of "easyrotator-social-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12633152
PHP1173028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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