Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼24.01ms] Passed 4 tests
An overview of server-side resources used by Template List Metabox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.03 | 43.23 ▼4.01 |
Dashboard /wp-admin | 3.38 ▼0.00 | 50.21 ▼20.12 |
Posts /wp-admin/edit.php | 3.50 ▲0.10 | 48.54 ▼5.97 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.69 | 37.07 ▼65.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 38.45 ▲0.12 |
Template List Metabox /wp-admin/options-general.php?page=010pixel_tmplt_list_metabox | 3.25 | 33.06 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
template_post_type_list |
Browser metrics Passed 4 tests
Checking browser requirements for Template List Metabox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.27 ▼0.33 | 1.74 ▼0.07 | 43.22 ▼1.12 |
Dashboard /wp-admin | 2,199 ▲31 | 5.63 ▼0.06 | 91.03 ▼10.80 | 39.32 ▼7.79 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.03 | 38.74 ▲2.79 | 34.91 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.06 ▼0.32 | 657.63 ▲16.72 | 51.19 ▼3.23 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▼0.02 | 96.19 ▼4.56 | 42.88 ▼2.82 |
Template List Metabox /wp-admin/options-general.php?page=010pixel_tmplt_list_metabox | 802 | 2.00 | 34.31 | 29.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- template_post_type_list
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=010pixel_tmplt_list_metabox
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=010pixel_tmplt_list_metabox
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/template-list-metabox-by-010pixel/010pixel_tmplt_list_metabox.php:40
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: Add images for these screenshots: #1 (Settings in WordPress to choose Custom Post Types), #2 (Sample Template List Metabox)
template-list-metabox-by-010pixel/010pixel_tmplt_list_metabox.php 92% from 13 tests
This is the main PHP file of "Template List Metabox" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("template-list-metabox-by-010pixel.php" instead of "010pixel_tmplt_list_metabox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin159 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 98 | 159 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 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 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 4.83KB | 2.70KB | ▼ 44.14% |
screenshot-1.png | 10.69KB | 5.49KB | ▼ 48.68% |