84% abundatrade-plugin

Code Review | Abundatrade Plugin

WordPress plugin Abundatrade Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: abundatrade-plugin
  • Plugin version: 1.8.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 5.9.2
  • First release: Oct 24, 2012
  • Latest release: Mar 15, 2013
  • Number of updates: 37
  • Update frequency: every 3.8 days
  • Top authors: withinboredom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,702 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼313.69ms] Passed 4 tests

This is a short check of server-side resources used by Abundatrade Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0850.71 ▼1.21
Dashboard /wp-admin3.56 ▲0.1533.41 ▼1.13
Posts /wp-admin/edit.php3.78 ▲0.1436.67 ▼3.12
Add New Post /wp-admin/post-new.php7.02 ▲0.0591.77 ▼1,249.31
Media Library /wp-admin/upload.php3.43 ▲0.1324.56 ▼0.60
Abundatrade /wp-admin/options-general.php?page=abundatrade3.4122.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Abundatrade Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,926 ▲18216.40 ▲0.6510.70 ▲4.092.52 ▲0.07
Dashboard /wp-admin2,899 ▲386.13 ▼0.02121.46 ▼22.83161.60 ▼4.35
Posts /wp-admin/edit.php2,695 ▲43.24 ▼0.0064.87 ▼2.49145.62 ▼117.51
Add New Post /wp-admin/post-new.php1,666 ▼4416.04 ▼5.37411.47 ▼43.51157.29 ▼12.34
Media Library /wp-admin/upload.php1,702 ▲45.48 ▼0.03142.37 ▲5.78186.94 ▼8.37
Abundatrade /wp-admin/options-general.php?page=abundatrade1,1702.4557.57154.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 1 option in the database
    • skel_abundatrade_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=abundatrade
    • > Notice in wp-content/plugins/abundatrade-plugin/tabs/settings_withinboredom.php+95
    Undefined variable: start

SRP Passed 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
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 just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 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
10 plugin tags: page, abundatrade, used, affiliate, cash...

abundatrade-plugin/abundatrade_pugin.php 92% from 13 tests

The entry point to "Abundatrade Plugin" version 1.8.02 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("abundatrade-plugin.php" instead of "abundatrade_pugin.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 detected4,085 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.17
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods38.33%
▷ Public methods3391.67%
▷ Protected methods00.00%
▷ Private methods38.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icons32.png54.58KB1.58KB▼ 97.10%