Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.06ms] Passed 4 tests
A check of server-side resources used by Postbox to Tab
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.57 ▼3.30 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.65 ▼10.37 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.60 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.66 ▼13.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.64 ▼1.12 |
Postbox to Tab /wp-admin/tools.php?page=pbtt | 3.23 | 29.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
pbtt_posttype |
can_compress_scripts |
theysaidso_admin_options |
pbtt_zone |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Postbox to Tab
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.54 ▼0.93 | 1.83 ▲0.06 | 43.72 ▲4.35 |
Dashboard /wp-admin | 2,213 ▲21 | 4.86 ▼0.07 | 96.55 ▼10.44 | 38.27 ▼7.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.05 | 41.01 ▲2.30 | 35.59 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.19 ▼0.01 | 592.14 ▼68.58 | 32.68 ▼14.32 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.23 ▲0.01 | 103.01 ▲6.15 | 45.78 ▲2.31 |
Postbox to Tab /wp-admin/tools.php?page=pbtt | 823 | 2.06 | 25.12 | 30.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_action() in wp-content/plugins/postbox-to-tab/options.php:35
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: plugin, postbox, editor, edit, custom post type...
postbox-to-tab/postbox-to-tab.php 92% from 13 tests
"Postbox to Tab" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin409 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 60 | 60 | 143 |
PHP | 3 | 42 | 71 | 143 |
PO File | 2 | 20 | 20 | 74 |
CSS | 1 | 9 | 0 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ 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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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 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