89% easy-plugin-stats

Code Review | Easy Plugin Stats

WordPress plugin Easy Plugin Stats scored 89% from 54 tests.

About plugin

  • Plugin page: easy-plugin-stats
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Dec 18, 2022
  • Number of updates: 8
  • Update frequency: every 295.1 days
  • Top authors: ndiego (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 2,567 total downloads


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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Easy Plugin Stats
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.01 ▼0.41
Dashboard /wp-admin3.32 ▲0.0246.97 ▼3.36
Posts /wp-admin/edit.php3.37 ▲0.0251.33 ▲7.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.45 ▼20.60
Media Library /wp-admin/upload.php3.24 ▲0.0238.04 ▲3.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Plugin Stats
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲23913.22 ▼1.141.72 ▼0.0246.50 ▼7.27
Dashboard /wp-admin2,377 ▲1894.92 ▲0.03101.49 ▼16.5641.91 ▼5.64
Posts /wp-admin/edit.php2,263 ▲1712.06 ▲0.0837.50 ▼4.4933.81 ▼1.12
Add New Post /wp-admin/post-new.php1,702 ▲15923.34 ▲0.19652.10 ▼6.6661.55 ▲6.31
Media Library /wp-admin/upload.php1,565 ▲1834.24 ▲0.0594.16 ▼5.8041.05 ▼1.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

easy-plugin-stats/easy-plugin-stats.php 85% from 13 tests

The main PHP file in "Easy Plugin Stats" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected762 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin