84% hide-products-count

Code Review | Hide products count

WordPress plugin Hide products count scored84%from 54 tests.

About plugin

  • Plugin page: hide-products-count
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Apr 18, 2017
  • Number of updates: 3
  • Update frequency: every 156.7 days
  • Top authors: unitepress (66.67%)boluda (66.67%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /5,155 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.00MB] [CPU: ▼5.96ms] Passed 4 tests

A check of server-side resources used by Hide products count
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0051.13 ▲12.19
Dashboard /wp-admin3.31 ▲0.0045.38 ▼2.83
Posts /wp-admin/edit.php3.36 ▲0.0043.77 ▼3.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.57 ▼19.29
Media Library /wp-admin/upload.php3.23 ▲0.0034.79 ▲1.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Hide products count
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.045.13 ▲3.4436.97 ▼5.99
Dashboard /wp-admin2,206 ▲154.82 ▼0.05104.39 ▼2.1239.66 ▼3.63
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0135.94 ▼1.8133.34 ▼2.68
Add New Post /wp-admin/post-new.php1,533 ▲1423.19 ▲0.27686.66 ▲60.4457.90 ▼11.94
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0393.62 ▼6.2243.23 ▼1.08

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hide-products-count/hide-products-count.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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: developers, dummy text, lorem ipsum

hide-products-count/hide-products-count.php 92% from 13 tests

The principal PHP file in "Hide products count" v. 0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13235

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected