89% wishful-ad-manager

Code Review | Wishful Ad Manager

WordPress plugin Wishful Ad Manager scored89%from 54 tests.

About plugin

  • Plugin page: wishful-ad-manager
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 27, 2020
  • Latest release: May 22, 2021
  • Number of updates: 3
  • Update frequency: every 90.3 days
  • Top authors: wishfulthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼0.44ms] Passed 4 tests

This is a short check of server-side resources used by Wishful Ad Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2645.71 ▲1.63
Dashboard /wp-admin3.54 ▲0.2459.36 ▲6.50
Posts /wp-admin/edit.php3.66 ▲0.3051.70 ▼4.82
Add New Post /wp-admin/post-new.php6.15 ▲0.2694.19 ▲0.61
Media Library /wp-admin/upload.php3.47 ▲0.2438.25 ▲0.82
New Ad /wp-admin/post-new.php?post_type=wishful-ads3.5347.99
Settings /wp-admin/edit.php?post_type=wishful-ads&page=wishfuladmngr-settings3.4436.83
All Ads /wp-admin/edit.php?post_type=wishful-ads3.5239.93
Header/Footer Scripts /wp-admin/edit.php?post_type=wishful-ads&page=wishfuladmngr-header-footer-scripts3.4537.33

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wishful Ad Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲19415.50 ▲1.1229.45 ▲27.8742.88 ▼3.21
Dashboard /wp-admin2,234 ▲575.56 ▼0.08132.55 ▲42.3752.94 ▲5.34
Posts /wp-admin/edit.php2,142 ▲422.05 ▲0.0634.31 ▼1.2933.71 ▼2.41
Add New Post /wp-admin/post-new.php1,559 ▲3323.06 ▼0.46690.30 ▼12.7859.00 ▲1.33
Media Library /wp-admin/upload.php1,433 ▲304.20 ▼0.10102.65 ▼2.7643.26 ▲0.36
New Ad /wp-admin/post-new.php?post_type=wishful-ads2,1374.89109.4136.26
Settings /wp-admin/edit.php?post_type=wishful-ads&page=wishfuladmngr-settings9072.7558.4225.52
All Ads /wp-admin/edit.php?post_type=wishful-ads1,1803.0342.0730.54
Header/Footer Scripts /wp-admin/edit.php?post_type=wishful-ads&page=wishfuladmngr-header-footer-scripts1,1245.2498.5036.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_wishful_ad_manager_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wishful-ad-manager === )
The official readme.txt is a good inspiration

wishful-ad-manager/wishful-ad-manager.php Passed 13 tests

"Wishful Ad Manager" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Your best advertisement management WordPress plugin.

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
Good job! No executable or dangerous file extensions detected1,324 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP183604421,159
JavaScript23740121
CSS16244

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity11.40
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods49
▷ Static methods918.37%
▷ Public methods3673.47%
▷ Protected methods00.00%
▷ Private methods1326.53%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin