84% marketpress-category-browser

Code Review | Marketpress Category Browser

WordPress plugin Marketpress Category Browser scored 84% from 54 tests.

About plugin

  • Plugin page: marketpress-categ...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 7, 2014
  • Latest release: Nov 13, 2014
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: arbet01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Marketpress Category Browser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.66 ▼0.83
Dashboard /wp-admin3.32 ▲0.0144.52 ▼2.67
Posts /wp-admin/edit.php3.37 ▲0.0150.90 ▲7.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.72 ▲2.22
Media Library /wp-admin/upload.php3.24 ▲0.0133.68 ▲2.39

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

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

Browser metrics Passed 4 tests

Marketpress Category Browser: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.30 ▼0.014.51 ▲2.8140.48 ▼3.17
Dashboard /wp-admin2,209 ▲64.87 ▼0.99107.84 ▲6.6441.97 ▼1.17
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0739.35 ▲6.1335.41 ▲1.88
Add New Post /wp-admin/post-new.php1,542 ▲2818.13 ▲0.43630.02 ▲8.4049.64 ▲1.91
Media Library /wp-admin/upload.php1,391 ▲94.19 ▼0.0494.55 ▼2.3644.02 ▲0.37

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_marketpress_category_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/marketpress-category-browser/marketpress-category-browser.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/marketpress-category-browser/lib/MarketpressCategoryWidget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: shortcode, widget, marketpress

marketpress-category-browser/marketpress-category-browser.php 92% from 13 tests

Analyzing the main PHP file in "Marketpress Category Browser" version 1.1.2
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin186 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3118145186

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods640.00%
▷ Protected methods00.00%
▷ Private methods960.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin