Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.97MB] [CPU: ▼42.88ms] Passed 4 tests
This is a short check of server-side resources used by Zamen Wordpress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▼0.54 | 19.30 ▼23.10 |
Dashboard /wp-admin | 3.08 ▼0.26 | 22.54 ▼49.55 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 24.03 ▼29.03 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.81 | 24.83 ▼69.83 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 22.23 ▼14.57 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Zamen Wordpress Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲40 | 13.59 ▼0.79 | 1.66 ▼0.54 | 40.28 ▼4.28 |
Dashboard /wp-admin | 2,220 ▲35 | 5.86 ▲0.05 | 106.61 ▼12.40 | 79.03 ▲40.31 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.97 ▼0.00 | 38.31 ▼2.50 | 38.78 ▲6.15 |
Add New Post /wp-admin/post-new.php | 6,227 ▲4,685 | 21.60 ▼1.46 | 908.34 ▲317.94 | 64.37 ▲0.48 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.21 ▼0.21 | 100.22 ▲7.33 | 65.32 ▲22.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/zamen/zamen.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ZAMEN_PLUGIN_PATH/includes/zamen-response-class.php' (include_path='.:/usr/share/php') in wp-content/plugins/zamen/includes/zamen-class.php on line 2
- > PHP Warning
require_once(ZAMEN_PLUGIN_PATH/includes/zamen-response-class.php): failed to open stream: No such file or directory in wp-content/plugins/zamen/includes/zamen-class.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zamen/includes/about.page.php:7
- > PHP Warning
Use of undefined constant ZAMEN_PLUGIN_PATH - assumed 'ZAMEN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zamen/includes/zamen-class.php on line 2
- > PHP Warning
Use of undefined constant ZAMEN_PLUGIN_URL - assumed 'ZAMEN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zamen/includes/about.page.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: zamen, zamenapp
zamen/zamen.php Passed 13 tests
The main PHP script in "Zamen Wordpress Plugin" version 1.1.2 is automatically included on every request by WordPress
77 characters long description:
Zamen WordPress plugin lets you sync your WordPress blog with Zamen Platform.
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 plugin581 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 123 | 132 | 524 |
PO File | 1 | 9 | 12 | 57 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/zamen-16.png | 1.30KB | 0.52KB | ▼ 60.20% |
img/logo.png | 32.89KB | 13.80KB | ▼ 58.04% |
img/zamen-32.png | 1.64KB | 0.85KB | ▼ 48.24% |