10% adrotate-extra-settings

Code Review | Adrotate Extra Settings

WordPress plugin Adrotate Extra Settings scored10%from 54 tests.

About plugin

  • Plugin page: adrotate-extra-se...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Feb 14, 2018
  • Number of updates: 16
  • Update frequency: every 85.6 days
  • Top authors: Mte90 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /3,869 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AdrotateExtraSettings' not found

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.65ms] Passed 4 tests

An overview of server-side resources used by Adrotate Extra Settings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.56 ▼4.54
Dashboard /wp-admin3.36 ▲0.0645.08 ▼5.29
Posts /wp-admin/edit.php3.47 ▲0.1246.10 ▲1.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.86 ▼10.27
Media Library /wp-admin/upload.php3.28 ▲0.0635.31 ▲1.67
Extra Settings /wp-admin/admin.php?page=adrotate-extra-settings3.2533.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Adrotate Extra Settings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.231.72 ▼0.0642.91 ▲0.09
Dashboard /wp-admin2,206 ▲214.84 ▼1.17102.33 ▼5.8235.84 ▼11.42
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0240.57 ▲3.4235.21 ▼2.64
Add New Post /wp-admin/post-new.php1,539 ▲422.99 ▲0.15678.17 ▲21.8956.05 ▲4.32
Media Library /wp-admin/upload.php1,391 ▲34.32 ▲0.0897.51 ▼12.8241.34 ▼7.77
Extra Settings /wp-admin/admin.php?page=adrotate-extra-settings8192.0225.2624.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AdrotateExtraSettings' not found
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
4 plugin tags: adrotate, banner, ad, ads

adrotate-extra-settings/adrotate-extra-settings.php Passed 13 tests

The principal PHP file in "Adrotate Extra Settings" v. 1.2.0 is loaded by WordPress automatically on each request
84 characters long description:
Ultra light plugin for Wordpress that add new tinys feature to AdRotate/AdRotate Pro

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin207 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP555160186
CSS10119
JavaScript1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png7.46KB4.99KB▼ 33.04%
assets/screenshot-1.png21.95KB11.03KB▼ 49.75%
assets/screenshot-2.png12.19KB4.65KB▼ 61.85%
assets/icon-256x256.png15.82KB9.47KB▼ 40.11%
assets/banner-772x250.png70.72KB34.23KB▼ 51.60%