10% adrotate-extra-settings

Code Review | Adrotate Extra Settings

WordPress plugin Adrotate Extra Settings scored 10% 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: 5.9.2
  • 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

90+ active / 3,497 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AdrotateExtraSettings' not found

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

An overview of server-side resources used by Adrotate Extra Settings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.50 ▲7.08
Dashboard /wp-admin3.47 ▲0.0733.28 ▲0.38
Posts /wp-admin/edit.php3.70 ▲0.0637.03 ▲0.76
Add New Post /wp-admin/post-new.php6.94 ▼0.0394.53 ▼1,167.02
Media Library /wp-admin/upload.php3.35 ▲0.0525.49 ▼5.76
Extra Settings /wp-admin/admin.php?page=adrotate-extra-settings3.3222.34

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adrotate Extra Settings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.92 ▼0.056.05 ▼0.132.28 ▲0.06
Dashboard /wp-admin2,895 ▲376.14 ▼0.03117.90 ▼16.77150.66 ▼9.60
Posts /wp-admin/edit.php2,694 ▼03.24 ▼0.0162.19 ▼1.36138.36 ▼3.85
Add New Post /wp-admin/post-new.php1,710 ▲2021.52 ▲0.30423.83 ▲6.68156.05 ▲0.56
Media Library /wp-admin/upload.php1,701 ▲35.50 ▼0.04144.16 ▼9.98186.61 ▼0.23
Extra Settings /wp-admin/admin.php?page=adrotate-extra-settings1,0282.4353.08100.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AdrotateExtraSettings' not found

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: ads, banner, adrotate, ad

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

The main file in "Adrotate Extra Settings" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin207 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP555160186
CSS10119
JavaScript1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

Using a strong compression for your PNG files is a great way to speed-up 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/banner-772x250.png70.72KB34.23KB▼ 51.60%
assets/icon-256x256.png15.82KB9.47KB▼ 40.11%
assets/screenshot-2.png12.19KB4.65KB▼ 61.85%
assets/screenshot-1.png21.95KB11.03KB▼ 49.75%