84% addonsuite-for-wpadverts

Code Review | AddonSuite - for WPAdverts

WordPress plugin AddonSuite - for WPAdverts scored84%from 54 tests.

About plugin

  • Plugin page: addonsuite-for-wp...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2018
  • Latest release: Feb 1, 2020
  • Number of updates: 117
  • Update frequency: every 4.1 days
  • Top authors: wpextendnet (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /7,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.04ms] Passed 4 tests

This is a short check of server-side resources used by AddonSuite - for WPAdverts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.90 ▼12.15
Dashboard /wp-admin3.31 ▲0.0145.81 ▼4.93
Posts /wp-admin/edit.php3.36 ▲0.0151.54 ▲1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.55 ▼8.24
Media Library /wp-admin/upload.php3.24 ▲0.0135.22 ▼2.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for AddonSuite - for WPAdverts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.26 ▼0.091.75 ▼0.7440.07 ▼2.76
Dashboard /wp-admin2,207 ▲305.63 ▼0.0194.78 ▼2.6145.98 ▼0.00
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0240.31 ▼1.8137.85 ▲0.54
Add New Post /wp-admin/post-new.php1,539 ▲1323.07 ▼0.18672.94 ▼5.4455.64 ▲3.15
Media Library /wp-admin/upload.php1,415 ▲124.23 ▲0.10101.01 ▼3.3542.05 ▼3.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× 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/addonsuite-for-wpadverts/includes/plugin-functions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-scripts.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-admin-extendedoptions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-admin.php:25

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

addonsuite-for-wpadverts/addonsuite-for-wpadverts.php Passed 13 tests

The main file in "AddonSuite - for WPAdverts" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
Extend your WPAdverts classifieds page with new features and options in less than a minute.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,250 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6188136867
PO File16984270
CSS2211113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions55
▷ Named functions5498.18%
▷ Anonymous functions11.82%
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
9 PNG files occupy 0.46MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-512x512.png118.67KB27.55KB▼ 76.79%
assets/img/logo.png1.45KB1.04KB▼ 28.24%
assets/img/head-icon-96x96.png9.44KB2.80KB▼ 70.38%
assets/img/icon-256x256.png55.44KB13.64KB▼ 75.40%
assets/img/icon-128x128.png23.29KB6.30KB▼ 72.94%