94% jk-development-console

Code Review | JK Development Console

WordPress plugin JK Development Console scored 94% from 54 tests.

About plugin

  • Plugin page: jk-development-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Aug 21, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 11
  • Update frequency: every 1.3 days
  • Top authors: KevinJCandlert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 783 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by JK Development Console
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0231.99 ▲1.77
Dashboard /wp-admin3.08 ▲0.0238.10 ▼9.60
Posts /wp-admin/edit.php3.13 ▲0.0244.15 ▼0.65
Add New Post /wp-admin/post-new.php5.43 ▲0.0087.16 ▼570.64
Media Library /wp-admin/upload.php3.02 ▲0.0236.06 ▼6.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JK Development Console
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,777 ▲18116.00 ▲0.4812.04 ▲0.5945.83 ▼7.40
Dashboard /wp-admin3,026 ▲925.91 ▼0.07137.85 ▼16.11122.93 ▲9.21
Posts /wp-admin/edit.php2,820 ▲812.70 ▼0.0263.37 ▼12.4189.55 ▲0.51
Add New Post /wp-admin/post-new.php2,138 ▲45524.74 ▲5.81391.53 ▼73.43103.81 ▼39.24
Media Library /wp-admin/upload.php1,814 ▲75.02 ▼0.00146.06 ▼14.93128.52 ▲9.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/jk-development-console/dev-console-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/jk-development-console/dev-console-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: custom, css, ajax, console, js...

jk-development-console/dev-console.php 92% from 13 tests

The main PHP script in "JK Development Console" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jk-development-console.php" instead of "dev-console.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected714 lines of code in 295 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript289284422
CSS2194110
SVG11195
PHP3191287

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin