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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.48ms] Passed 4 tests
An overview of server-side resources used by WPCREO
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.02 ▼2.17 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.87 ▼8.65 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.17 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 101.68 ▼6.71 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.13 ▼0.40 |
WPCREO /wp-admin/options-general.php?page=WPCREO-plugin_options | 3.22 | 28.62 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
WPCREO: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.09 | 1.82 ▼0.51 | 42.84 ▲0.10 |
Dashboard /wp-admin | 2,207 ▲19 | 4.83 ▼1.07 | 114.36 ▲12.23 | 42.07 ▼0.20 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.00 | 39.72 ▼1.06 | 34.40 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.25 ▼5.02 | 601.52 ▼105.46 | 59.58 ▲2.60 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.22 ▲0.01 | 96.60 ▼5.56 | 41.34 ▼0.42 |
WPCREO /wp-admin/options-general.php?page=WPCREO-plugin_options | 807 | 2.03 | 24.58 | 33.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=WPCREO-plugin_options
- > 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=WPCREO-plugin_options
- > 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpcreo/WPCREO.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wpcreo/options.php:3
- > 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 86% from 29 tests
readme.txt 81% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (WPCREO tile page), #2 (WPCREO article list)
- Contributors: The plugin contributors field is missing
- Contributors: No valid plugin tags found
wpcreo/WPCREO.php 92% from 13 tests
Analyzing the main PHP file in "WPCREO" version 2.0
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpcreo.php" instead of "WPCREO.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected171 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 59 | 61 | 171 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.60MB with 0.44MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 290.58KB | 79.57KB | ▼ 72.62% |
screenshot-2.PNG | 318.83KB | 84.01KB | ▼ 73.65% |