89% wp-themes-plugins-stats

Code Review | WP Themes & Plugins Stats

WordPress plugin WP Themes & Plugins Stats scored89%from 54 tests.

About plugin

  • Plugin page: wp-themes-plugins...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 23, 2019
  • Latest release: Aug 30, 2023
  • Number of updates: 16
  • Update frequency: every 90.0 days
  • Top authors: brainstormworg (87.5%)patilvikasj (18.75%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /3,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.69ms] Passed 4 tests

Server-side resources used by WP Themes & Plugins Stats
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1939.19 ▼3.74
Dashboard /wp-admin3.49 ▲0.1554.34 ▼8.55
Posts /wp-admin/edit.php3.61 ▲0.2549.07 ▲6.21
Add New Post /wp-admin/post-new.php6.10 ▲0.2184.57 ▲1.55
Media Library /wp-admin/upload.php3.42 ▲0.1936.86 ▲3.98
WP Themes & Plugins Stats /wp-admin/options-general.php?page=bsf-as-setting-admin3.4331.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Themes & Plugins Stats
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.34 ▼1.331.57 ▼0.4341.73 ▼1.01
Dashboard /wp-admin2,210 ▲254.84 ▼0.9896.27 ▼8.0837.03 ▼1.07
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.1439.12 ▼0.1835.41 ▼0.66
Add New Post /wp-admin/post-new.php1,545 ▲2518.84 ▼4.37606.58 ▼14.1253.72 ▲8.71
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.0699.12 ▲0.0339.57 ▼4.25
WP Themes & Plugins Stats /wp-admin/options-general.php?page=bsf-as-setting-admin9992.0423.2329.50

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: total download active install count of plugin and theme by author, plugin-stats, active-install, themes-stats, stats

wp-themes-plugins-stats/wp-themes-plugins-stats.php 85% from 13 tests

The main PHP file in "WP Themes & Plugins Stats" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 182 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,401 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP82494431,321
CSS10077
JavaScript1113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity44.00
▷ Minimum class complexity15.00
▷ Maximum class complexity70.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods55
▷ Static methods59.09%
▷ Public methods5294.55%
▷ Protected methods00.00%
▷ Private methods35.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin