84% themeforestnet-money-maker

Code Review | Themeforest.net Money Maker

WordPress plugin Themeforest.net Money Maker scored84%from 54 tests.

About plugin

  • Plugin page: themeforestnet-mo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Mar 19, 2015
  • Number of updates: 8
  • Update frequency: every 12.9 days
  • Top authors: djjmz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,036 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Themeforest.net Money Maker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.34 ▼1.87
Dashboard /wp-admin3.34 ▲0.0443.52 ▼6.10
Posts /wp-admin/edit.php3.39 ▲0.0445.32 ▼1.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.22 ▼11.09
Media Library /wp-admin/upload.php3.27 ▲0.0434.87 ▲0.47

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_themeforest_thenes_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Themeforest.net Money Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.171.60 ▼0.0540.00 ▲0.25
Dashboard /wp-admin2,203 ▲215.79 ▼0.1194.58 ▼5.6139.86 ▼4.68
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0236.25 ▼5.7132.73 ▼4.78
Add New Post /wp-admin/post-new.php1,533 ▲1923.15 ▲5.50633.15 ▼39.8758.68 ▲4.74
Media Library /wp-admin/upload.php1,382 ▼04.18 ▲0.0197.37 ▼6.1942.38 ▲1.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_themeforest_thenes_widget

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themeforestnet-money-maker/index.php:16

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: themeforest, money, make, referral

themeforestnet-money-maker/index.php 92% from 13 tests

The main PHP script in "Themeforest.net Money Maker" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("themeforestnet-money-maker.php" instead of "index.php")

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
There were no executable files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP198118

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity8.75
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png11.52KB4.56KB▼ 60.44%