Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲3.44ms] Passed 4 tests
This is a short check of server-side resources used by Post Designer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 45.29 ▲4.75 |
Dashboard /wp-admin | 3.57 ▲0.26 | 46.36 ▼0.67 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.08 ▲6.57 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 97.58 ▲3.11 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.84 ▲7.83 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
_post_designer_install_time |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Post Designer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 13.76 ▼0.61 | 8.06 ▲6.17 | 37.41 ▼13.72 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.05 | 105.41 ▼0.92 | 41.21 ▼1.11 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.00 | 39.84 ▲4.38 | 35.16 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6,362 ▲4,820 | 28.59 ▲10.28 | 848.03 ▲218.74 | 35.95 ▼19.14 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.01 | 97.27 ▼34.57 | 43.08 ▼4.64 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- _post_designer_install_time
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-designer/post-designer.php:58
- > PHP Fatal error
Uncaught Error: Class 'PostDesigner\\Utilities\\Utilities' not found in wp-content/plugins/post-designer/templates/post-carousel.php:15
- > PHP Fatal error
Uncaught Error: Class 'PostDesigner\\Utilities\\Utilities' not found in wp-content/plugins/post-designer/templates/post-list.php:15
- > PHP Fatal error
Uncaught Error: Class 'PostDesigner' not found in wp-content/plugins/post-designer/templates/card/card.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
post-designer/post-designer.php 85% from 13 tests
The main PHP script in "Post Designer" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "5.9")
- Description: The description should be shorter than 140 characters (currently 232 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,391 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 345 | 850 | 1,548 |
JSON | 3 | 0 | 0 | 499 |
CSS | 6 | 44 | 5 | 280 |
JavaScript | 4 | 3 | 34 | 45 |
SVG | 2 | 1 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 79 | |
▷ Static methods | 50 | 63.29% |
▷ Public methods | 75 | 94.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.06% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin