84% marketpress-total-sales

Code Review | Marketpress Total Sales

WordPress plugin Marketpress Total Sales scored84%from 54 tests.

About plugin

  • Plugin page: marketpress-total...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 13, 2014
  • Latest release: Sep 14, 2014
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: subhashnagda (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Marketpress Total Sales
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.74 ▲5.04
Dashboard /wp-admin3.31 ▲0.0146.27 ▼7.08
Posts /wp-admin/edit.php3.36 ▲0.0154.27 ▲5.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.45 ▼15.99
Media Library /wp-admin/upload.php3.24 ▲0.0135.81 ▲0.38

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Marketpress Total Sales
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▼0.011.63 ▲0.0135.89 ▼5.89
Dashboard /wp-admin2,195 ▲185.58 ▼0.0582.03 ▼5.2636.83 ▼3.00
Posts /wp-admin/edit.php2,100 ▲32.13 ▲0.1339.01 ▲2.7835.78 ▲5.36
Add New Post /wp-admin/post-new.php1,526 ▼923.32 ▲5.23655.91 ▲44.3255.80 ▼8.60
Media Library /wp-admin/upload.php1,397 ▲34.23 ▲0.03107.45 ▲9.1045.92 ▲4.35

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/marketpress-total-sales/marketpress-total-sales.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === marketpress-total-sales === )
You can look at the official readme.txt

marketpress-total-sales/marketpress-total-sales.php Passed 13 tests

The entry point to "Marketpress Total Sales" version 1.0 is a PHP file that has certain tags in its header comment area
91 characters long description:
Easily show off the total amount of sales your Marketpress store has made,in a shortcode.

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
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16719

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
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

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