Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.21MB] [CPU: ▼15.67ms] Passed 4 tests
Analyzing server-side resources used by JKL Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 32.86 ▼10.08 |
Dashboard /wp-admin | 3.43 ▲0.12 | 53.12 ▲4.83 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 56.04 ▲6.95 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 41.69 ▼59.56 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.84 ▲2.13 |
JKL Reviews Options /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php | 3.29 | 30.86 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JKL Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.39 ▼0.98 | 1.78 ▼0.34 | 39.18 ▼2.67 |
Dashboard /wp-admin | 2,210 ▲25 | 5.04 ▼0.83 | 99.16 ▼3.55 | 39.19 ▼5.11 |
Posts /wp-admin/edit.php | 2,269 ▲177 | 3.61 ▲1.61 | 80.57 ▲37.83 | 34.14 ▼4.70 |
Add New Post /wp-admin/post-new.php | 6,639 ▲5,095 | 18.93 ▲0.78 | 912.47 ▲276.54 | 67.83 ▲14.76 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.14 ▼0.05 | 81.98 ▼20.16 | 42.84 ▼1.51 |
JKL Reviews Options /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php | 864 | 2.06 | 26.81 | 32.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method JKL_Review_Options::jkl_display_options_page() should not be called statically
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jkl-reviews/jkl-reviews.php
- > Notice in wp-content/plugins/jkl-reviews/jkl-reviews.php+942
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jkl-reviews/jkl-reviews.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Tags: There are too many tags (12 tag instead of maximum 10)
jkl-reviews/jkl-reviews.php 92% from 13 tests
The main PHP script in "JKL Reviews" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,091 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 141 | 205 | 611 |
CSS | 2 | 6 | 24 | 329 |
Markdown | 1 | 31 | 0 | 103 |
SVG | 2 | 0 | 2 | 26 |
JavaScript | 1 | 17 | 13 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin