Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼144.88ms] 75% from 4 tests
An overview of server-side resources used by Theme Checklist
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 17,124.94ms on /wp-admin/tools.php?page=theme-checklist)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 30.70 ▼3.67 |
Dashboard /wp-admin | 3.11 ▲0.06 | 48.38 ▼1.58 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.26 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 87.92 ▼564.32 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.41 ▼9.93 |
Theme Checklist /wp-admin/tools.php?page=theme-checklist | 3.06 | 17,124.94 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Theme Checklist
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.94 ▲0.35 | 11.77 ▼3.34 | 49.25 ▲3.02 |
Dashboard /wp-admin | 2,975 ▲44 | 5.93 ▼0.01 | 147.05 ▲3.43 | 109.73 ▲9.69 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 66.09 ▼4.51 | 97.19 ▲11.77 |
Add New Post /wp-admin/post-new.php | 1,501 ▲1 | 18.82 ▲0.37 | 383.97 ▼22.28 | 109.79 ▼4.41 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.01 | 157.44 ▲2.34 | 113.52 ▼4.47 |
Theme Checklist /wp-admin/tools.php?page=theme-checklist | 926 | 2.13 | 36.43 | 63.25 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=theme-checklist
- > Error in wp-content/plugins/theme-checklist/theme-checklist.php+97
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/theme-checklist/theme-checklist.php:97
Stack trace:
#0 wp-content/plugins/theme-checklist/tpl/admin-page.php(13): theme_checklist_load_checks()
#1 wp-content/plugins/theme-checklist/theme-checklist.php(64): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(303): theme_checklist_render_admin()
#3 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(470): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/theme-checklist/tpl/admin-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-checklist/theme-checklist.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: gallery, widget
theme-checklist/theme-checklist.php Passed 13 tests
The principal PHP file in "Theme Checklist" v. 1.0.3 is loaded by WordPress automatically on each request
89 characters long description:
A checklist of the most common snag points that developers run into when creating themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin971 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 73 | 51 | 324 |
PHP | 2 | 79 | 68 | 273 |
LESS | 1 | 38 | 1 | 189 |
CSS | 1 | 0 | 1 | 171 |
SVG | 1 | 0 | 0 | 13 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected