Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.06ms] Passed 4 tests
Server-side resources used by Nzymes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 41.41 ▲1.60 |
Dashboard /wp-admin | 3.44 ▲0.13 | 45.65 ▼2.88 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.04 ▼1.32 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.70 ▼2.80 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.22 ▼1.23 |
Server storage [IO: ▲1.46MB] [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: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
__nzymes__global_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Nzymes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.41 | 1.63 ▼0.12 | 41.51 ▲2.64 |
Dashboard /wp-admin | 2,209 ▲18 | 4.86 ▼0.01 | 106.78 ▲0.94 | 39.46 ▼2.84 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 38.12 ▼1.33 | 33.76 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.57 ▼4.57 | 596.96 ▼72.00 | 53.26 ▲2.68 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.02 | 97.37 ▼18.83 | 40.38 ▼9.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nzymes/nzymes.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/nzymes/src/Nzymes/Engine.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nzymes/src/Nzymes/Engine.php on line 2
- > PHP Warning
Use of undefined constant NZYMES_PRIMARY - assumed 'NZYMES_PRIMARY' (this will throw an Error in a future version of PHP) in wp-content/plugins/nzymes/src/Nzymes/Plugin.php on line 2
- > PHP Fatal error
require_once(): Failed opening required './src/Nzymes/Capabilities.php' (include_path='.:/usr/share/php') in wp-content/plugins/nzymes/src/Nzymes/Plugin.php on line 2
- > PHP Warning
require_once(./src/Nzymes/Capabilities.php): failed to open stream: No such file or directory in wp-content/plugins/nzymes/src/Nzymes/Plugin.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/nzymes/src/Nzymes/Engine.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: post, enzymes, author, inject, code...
nzymes/nzymes.php 92% from 13 tests
The main PHP script in "Nzymes" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 211 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,042 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 391 | 1,622 | 2,294 |
Markdown | 2 | 468 | 0 | 748 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 94 | 52.51% |
▷ Public methods | 109 | 60.89% |
▷ Protected methods | 70 | 39.11% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 41 | |
▷ Global constants | 2 | 4.88% |
▷ Class constants | 39 | 95.12% |
▷ Public constants | 39 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.28MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 142.33KB | 36.62KB | ▼ 74.27% |
assets/screenshot-3.png | 126.98KB | 35.42KB | ▼ 72.10% |
assets/banner-772x250.png | 379.94KB | 84.05KB | ▼ 77.88% |
assets/screenshot-5.png | 134.84KB | 38.03KB | ▼ 71.79% |
assets/icon-128x128.png | 34.46KB | 9.53KB | ▼ 72.35% |