Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.65MB] [CPU: ▼13.47ms] Passed 4 tests
Analyzing server-side resources used by WordPress Easy Guide
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.50 ▼0.72 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.46 ▲0.52 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.95 ▲1.39 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 38.23 ▼53.43 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.51 ▼0.25 |
Manages /wp-admin/admin.php?page=wpeg/manages | 3.25 | 32.90 |
Getting started /wp-admin/admin.php?page=wpeg/about | 3.27 | 34.44 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wpeg_steps |
wp_wpeg_guides |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
wpeg_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Easy Guide
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 17.96 ▲3.40 | 1.72 ▲0.08 | 39.06 ▼2.39 |
Dashboard /wp-admin | 2,295 ▲115 | 7.90 ▲2.29 | 145.33 ▲56.51 | 84.39 ▲40.55 |
Posts /wp-admin/edit.php | 2,363 ▲263 | 5.47 ▲3.50 | 72.79 ▲37.32 | 59.40 ▲24.20 |
Add New Post /wp-admin/post-new.php | 1,601 ▲75 | 25.03 ▲1.27 | 698.96 ▼2.85 | 37.96 ▼19.57 |
Media Library /wp-admin/upload.php | 1,657 ▲254 | 7.48 ▲3.31 | 131.82 ▲26.04 | 87.67 ▲40.58 |
Manages /wp-admin/admin.php?page=wpeg/manages | 1,075 | 5.76 | 84.53 | 27.33 |
Getting started /wp-admin/admin.php?page=wpeg/about | 1,145 | 5.49 | 62.52 | 44.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wpeg_steps
- wp_wpeg_guides
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- wpeg_db_version
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-easy-guide/views/manage.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-easy-guide/views/about.php:15
- > 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)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tested up to: Version format is invalid
- Requires at least: Version format is invalid
wp-easy-guide/wpeg.php 77% from 13 tests
Analyzing the main PHP file in "WordPress Easy Guide" version 1.0.0
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-easy-guide.php" instead of "wpeg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin12,476 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,322 | 1,502 | 10,952 |
PHP | 10 | 227 | 359 | 1,056 |
CSS | 2 | 64 | 21 | 292 |
PO File | 1 | 74 | 76 | 160 |
SVG | 1 | 0 | 1 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 36 | 97.30% |
▷ Public methods | 29 | 78.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 21.62% |
Functions | 4 | |
▷ Named functions | 4 | 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
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/hero-image.png | 34.14KB | 10.27KB | ▼ 69.91% |
assets/img/logo-base.png | 15.98KB | 6.39KB | ▼ 60.04% |
assets/img/logo-icon.png | 29.52KB | 8.67KB | ▼ 70.64% |