Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼4.39ms] Passed 4 tests
Analyzing server-side resources used by Themepacific WordPress Review Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 47.01 ▲7.88 |
Dashboard /wp-admin | 3.53 ▲0.18 | 51.81 ▼12.13 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 50.32 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 100.52 ▼1.48 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 44.47 ▼0.16 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/themepacific-review-lite/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_crn-wpreview-bestreviews-widget-pro |
widget_crn-wpreview-reviews-widget-pro |
widget_recent-comments |
Browser metrics Passed 4 tests
Themepacific WordPress Review Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.90 ▼0.39 | 1.71 ▲0.11 | 42.45 ▲0.47 |
Dashboard /wp-admin | 2,258 ▲55 | 5.01 ▲0.14 | 99.81 ▼7.34 | 63.07 ▲25.77 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.29 ▲0.32 | 37.71 ▼0.18 | 38.70 ▲6.56 |
Add New Post /wp-admin/post-new.php | 6,452 ▲4,926 | 21.73 ▲4.20 | 968.21 ▲342.92 | 72.02 ▲13.80 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.37 ▲0.15 | 115.14 ▲12.89 | 82.04 ▲35.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_crn-wpreview-bestreviews-widget-pro
- widget_crn-wpreview-reviews-widget-pro
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× 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/themepacific-review-lite/admin/crn_post_meta.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepacific-review-lite/public/themepacific_wpreview_functions.php:247
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepacific-review-lite/admin/meta_box.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Themepacific WordPress Review Lite===
)
themepacific-review-lite/tpcrn_wpreview.php 85% from 13 tests
The entry point to "Themepacific WordPress Review Lite" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("themepacific-review-lite.php" instead of "tpcrn_wpreview.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected1,370 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 395 | 103 | 803 |
CSS | 2 | 23 | 23 | 527 |
JavaScript | 2 | 13 | 2 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.70% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/images/favicon.png | 1.12KB | 0.00KB | ▼ 100.00% |