83% wp-code-checker

Code Review | Wordpress Code Checker

WordPress plugin Wordpress Code Checker scored 83% from 54 tests.

About plugin

  • Plugin page: wp-code-checker
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Sep 30, 2023
  • Number of updates: 9
  • Update frequency: every 109.2 days
  • Top authors: metin_Nn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲2.14ms] Passed 4 tests

Server-side resources used by Wordpress Code Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0351.88 ▲10.06
Dashboard /wp-admin3.34 ▲0.0357.39 ▲3.78
Posts /wp-admin/edit.php3.39 ▲0.0358.41 ▲7.49
Add New Post /wp-admin/post-new.php5.92 ▲0.03107.22 ▲0.89
Media Library /wp-admin/upload.php3.26 ▲0.0342.90 ▼3.60
wcChecker /wp-admin/admin.php?page=wc-checker3.2335.31
Install Demo /wp-admin/admin.php?page=install_demo3.2339.08
Security Code(s) /wp-admin/edit.php?post_type=sc3.3042.66

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
wcc_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Code Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11813.27 ▼1.112.63 ▲0.8553.93 ▲12.02
Dashboard /wp-admin2,240 ▲525.87 ▼0.04147.16 ▲37.1360.86 ▲5.07
Posts /wp-admin/edit.php2,126 ▲342.06 ▲0.0549.47 ▲12.9244.41 ▲11.42
Add New Post /wp-admin/post-new.php1,426 ▼9417.76 ▼3.34726.75 ▼46.3056.35 ▼25.20
Media Library /wp-admin/upload.php1,416 ▲284.21 ▲0.05136.80 ▼6.0961.78 ▼5.82
wcChecker /wp-admin/admin.php?page=wc-checker9052.0430.2539.72
Install Demo /wp-admin/admin.php?page=install_demo9082.0229.4437.85
Security Code(s) /wp-admin/edit.php?post_type=sc1,0872.0047.4638.02

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-code-checker/inc/metabox.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in wp-code-checker/assets to your readme.txt
The official readme.txt might help

wp-code-checker/wordpress-code-checker.php 85% from 13 tests

"Wordpress Code Checker" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-code-checker.php" instead of "wordpress-code-checker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin516 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP622485428
CSS17280
Markdown1408

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin