Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼7.39ms] Passed 4 tests
A check of server-side resources used by merch.systems
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.43 ▼7.42 |
Dashboard /wp-admin | 3.51 ▲0.21 | 44.97 ▼4.26 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 41.37 ▼7.76 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 85.35 ▼10.10 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.33 ▼0.57 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for merch.systems
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.29 ▼1.46 | 1.56 ▼0.24 | 40.45 ▼8.18 |
Dashboard /wp-admin | 2,220 ▲32 | 5.91 ▲1.07 | 93.49 ▼10.97 | 73.40 ▲26.41 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.00 ▲0.02 | 34.87 ▼4.51 | 30.90 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 17.64 ▼0.77 | 720.01 ▲102.71 | 65.02 ▲12.36 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.25 ▲0.04 | 112.42 ▲12.67 | 43.29 ▲0.41 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Source' not found in wp-content/plugins/merch-systems/includes/Mustache/Source/FilesystemSource.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/merch-systems/includes/Mustache/Loader/FilesystemLoader.php:27
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/merch-systems/includes/Mustache/Cache/NoopCache.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/merch-systems/includes/Mustache/Exception/RuntimeException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/merch-systems/includes/Mustache/Logger/AbstractLogger.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Cache' not found in wp-content/plugins/merch-systems/includes/Mustache/Cache/AbstractCache.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/merch-systems/includes/Mustache/Cache/FilesystemCache.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/merch-systems/includes/Merchsys_Settings.php:205
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/merch-systems/includes/Mustache/Exception/UnknownHelperException.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/merch-systems/includes/Merchsys.php:7
- > 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 90% 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
These attributes need your attention:
- Requires php: Version format is invalid
- Plugin Name: You should set the name of your plugin on the first line (
=== merch-systems ===
)
merch-systems/merchsys.php 92% from 13 tests
"merch.systems" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("merch-systems.php" instead of "merchsys.php")
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,973 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 636 | 2,557 | 2,869 |
PO File | 1 | 99 | 167 | 103 |
Mustache | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 4 | 9.52% |
▷ Concrete classes | 38 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 234 | |
▷ Static methods | 16 | 6.84% |
▷ Public methods | 170 | 72.65% |
▷ Protected methods | 15 | 6.41% |
▷ Private methods | 49 | 20.94% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 77 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 77 | 100.00% |
▷ Public constants | 77 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 2.88KB | 1.61KB | ▼ 44.21% |