Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/widont-part-deux/wp-widont.php+103
Illegal string offset 'version'
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.91ms] Passed 4 tests
Server-side resources used by Widon't Part Deux
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.24 ▼2.25 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.57 ▲0.12 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.92 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 97.49 ▼1.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.12 ▲0.17 |
Widon’t Part Deux /wp-admin/options-general.php?page=widont-part-deux/wp-widont.php | 3.24 | 32.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widont_deux |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Widon't Part Deux
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.21 ▼1.08 | 1.80 ▼0.18 | 40.49 ▼4.78 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.04 | 107.83 ▲3.90 | 41.75 ▲5.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.02 | 39.22 ▲0.62 | 35.06 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.34 ▲0.18 | 607.35 ▼23.19 | 49.39 ▼5.77 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.28 ▲0.06 | 96.05 ▼6.94 | 41.02 ▼4.24 |
Widon’t Part Deux /wp-admin/options-general.php?page=widont-part-deux/wp-widont.php | 788 | 2.03 | 23.80 | 31.00 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widont_deux
- widget_recent-comments
- theysaidso_admin_options
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/widont-part-deux/wp-widont.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: title, typography, widows, orphans
widont-part-deux/wp-widont.php 85% from 13 tests
The main file in "Widon't Part Deux" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 288 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("widont-part-deux.php" instead of "wp-widont.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected157 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 106 | 157 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected