Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.97ms] Passed 4 tests
Analyzing server-side resources used by JB Shortener
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.51 ▼4.59 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.61 ▼2.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.82 ▲5.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.93 ▼3.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.94 ▲2.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
JB Shortener: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.24 ▼0.98 | 1.75 ▼0.07 | 41.86 ▼0.77 |
Dashboard /wp-admin | 2,209 ▲21 | 5.84 ▲0.95 | 98.95 ▼19.14 | 41.21 ▼7.34 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.05 ▲0.05 | 40.20 ▲3.22 | 36.62 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 18.22 ▲0.02 | 598.84 ▲1.24 | 58.09 ▲4.32 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▲0.00 | 101.27 ▼3.32 | 43.72 ▼1.03 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jb-shortener/jb-shortener.php:14
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/jb-shortener/sunrise.php on line 6
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/jb-shortener/sunrise.php on line 6
- > PHP Warning
Creating default object from empty value in wp-content/plugins/jb-shortener/sunrise.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::escape() in wp-content/plugins/jb-shortener/sunrise.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: twitter, shorturl
jb-shortener/jb-shortener.php 92% from 13 tests
The primary PHP file in "JB Shortener" version 1.1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin145 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 37 | 43 | 145 |
PHP code Passed 2 tests
Analyzing 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.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.15 |
▷ 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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin