79% wpcheckr

Code Review | WPCheckr

WordPress plugin WPCheckr scored79%from 54 tests.

About plugin

  • Plugin page: wpcheckr
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Jan 14, 2020
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: nicoandrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.64MB] [CPU: ▼18.73ms] Passed 4 tests

This is a short check of server-side resources used by WPCheckr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.96 ▲3.14
Dashboard /wp-admin3.35 ▲0.0444.30 ▼2.88
Posts /wp-admin/edit.php3.40 ▲0.0448.60 ▼2.00
Add New Post /wp-admin/post-new.php3.22 ▼2.6733.41 ▼69.74
Media Library /wp-admin/upload.php3.27 ▲0.0432.82 ▼0.29
WPCheckr /wp-admin/tools.php?page=wpcheckr3.2129.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
wpcheckr-secret-string

Browser metrics Passed 4 tests

Checking browser requirements for WPCheckr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.20 ▼1.551.75 ▼0.0045.82 ▲2.96
Dashboard /wp-admin2,212 ▲275.79 ▲0.8199.90 ▼4.7237.05 ▼3.43
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0140.00 ▲2.4131.99 ▼2.72
Add New Post /wp-admin/post-new.php1,533 ▲1423.04 ▼0.14663.22 ▼30.6850.73 ▼1.90
Media Library /wp-admin/upload.php1,394 ▲64.15 ▼0.0595.72 ▼19.0543.55 ▼6.15
WPCheckr /wp-admin/tools.php?page=wpcheckr7812.1924.6433.97

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • wpcheckr-secret-string
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=wpcheckr
    • > Notice in wp-content/plugins/wpcheckr/inc/options-page.php+38
    Trying to access array offset on value of type bool

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcheckr/inc/rest-api-endpoints.php:160
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpcheckr/wpcheckr.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: monitor, wpcheckr, wordpress, update, checks

wpcheckr/wpcheckr.php Passed 13 tests

The primary PHP file in "WPCheckr" version 1.0.1 is used by WordPress to initiate all plugin functionality
107 characters long description:
WPCheckr helps you monitor all your WordPress sites in one place, so you can mantain everything up to date.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin228 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46457218
CSS10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin