Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.52ms] Passed 4 tests
Analyzing server-side resources used by ZPT Metals
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 37.18 ▼1.62 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.49 ▼3.12 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.90 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 93.21 ▲6.42 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.88 ▲0.15 |
Shortcode /wp-admin/admin.php?page=zpt-metals-info | 3.32 | 31.43 |
Settings /wp-admin/admin.php?page=zpt-metals-settings | 3.40 | 39.64 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ZPT Metals
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.25 ▼0.02 | 1.74 ▲0.14 | 37.95 ▼2.10 |
Dashboard /wp-admin | 2,222 ▲51 | 5.56 ▼0.03 | 84.24 ▼3.77 | 39.47 ▼4.40 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.09 | 37.28 ▼4.40 | 36.69 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.27 ▼0.16 | 647.70 ▼44.79 | 50.53 ▼7.47 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.19 ▼0.03 | 96.55 ▼1.00 | 42.36 ▼5.38 |
Shortcode /wp-admin/admin.php?page=zpt-metals-info | 954 | 1.99 | 22.00 | 31.89 |
Settings /wp-admin/admin.php?page=zpt-metals-settings | 2,377 | 9.96 | 180.41 | 65.77 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- zpt_metal_api_error_found
- theysaidso_admin_options
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/zpt-metals/backend/zpt-cron.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #7 (Before and After product price) image required
zpt-metals/igniter.php 85% from 13 tests
"ZPT Metals" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 285 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("zpt-metals.php" instead of "igniter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,418 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 608 | 143 | 1,418 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.89 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected