Benchmarks
Plugin footprint 48% 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.08MB] [CPU: ▼1.82ms] Passed 4 tests
Analyzing server-side resources used by Super Metronic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.62 ▼1.11 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.54 ▲0.46 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.80 ▲2.62 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 82.44 ▼2.51 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.12 ▼4.13 |
Activate /wp-admin/admin.php?page=portlets | 3.34 | 36.29 |
Customize /wp-admin/admin.php?page=portlets-customize | 3.37 | 39.63 |
Server storage [IO: ▲4.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_portlets |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Super Metronic
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲172 | 13.57 ▼0.82 | 9.75 ▲7.36 | 76.50 ▲33.11 |
Dashboard /wp-admin | 2,228 ▲43 | 5.79 ▲0.77 | 112.27 ▲10.00 | 78.77 ▲33.24 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.00 ▼0.01 | 34.41 ▼2.04 | 32.78 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.27 ▼0.01 | 712.99 ▼25.73 | 61.44 ▲6.19 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.12 ▲0.03 | 111.55 ▲4.07 | 49.15 ▲2.16 |
Activate /wp-admin/admin.php?page=portlets | 1,036 | 3.39 | 52.82 | 96.47 |
Customize /wp-admin/admin.php?page=portlets-customize | 9,874 | 3.96 | 109.94 | 67.58 |
Uninstaller [IO: ▲4.14MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionThis plugin does not fully uninstall, leaving 1 table in the database The uninstall procedure has failed, leaving 6 options in the database
- Uninstaller has failed for this plugin, leaving 150 files (4.14MB) in the plugin directory
- (new file) assets/css/fonts/2211.ttf
- (new file) assets/css/front.css
- (new file) assets/css/admin-activate.css
- (new file) 4.jpg
- (new file) 3.jpg
- (new file) 1.jpg
- (new file) assets/css/admin-customize.css
- (new file) assets/global/css/components.min.css
- (new file) 2.jpg
- (new file) assets/css/common.css
- ...
- wp_portlets
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- 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 everything seems fine, this is not 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
Please take a closer look at the following
- 121× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/Abstract.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/Date.php on line 27
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/File/ImageSize.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Uri/Http.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Http/Client/Adapter/Socket.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Uri.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Uri/Http.php on line 25
- > PHP Warning
require_once(Zend/Validate/Hostname/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/Hostname/Li.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Http/Client.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/File/MimeType.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/Barcode/UpcA.php on line 27
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/super-metronic/includes/phpQuery/phpQuery/Zend/Validate/Date.php on line 27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portlets-customize
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/super-metronic/assets/js/admin.js?ver=6.3.1:5:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=portlets-customize
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 need to be fixed:
- Screenshots: These screenshots require images: #1 (Create a new portlet. The choice of color.), #2 (Clearance of the porlet. You can add details.), #3 (The list of ready portlets in the admin panel.), #4 (The list of activated portlets on a user page.)
super-metronic/class-super-metronic.php 85% from 13 tests
The main PHP file in "Super Metronic" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("super-metronic.php" instead of "class-super-metronic.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin14,866 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 1,541 | 7,927 | 9,501 |
SVG | 4 | 0 | 0 | 3,666 |
JavaScript | 12 | 201 | 165 | 1,066 |
CSS | 14 | 26 | 60 | 555 |
PO File | 1 | 27 | 33 | 78 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 22.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 4.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 8 | 9.76% |
▷ Concrete classes | 74 | 90.24% |
▷ Final classes | 0 | 0.00% |
Methods | 626 | |
▷ Static methods | 147 | 23.48% |
▷ Public methods | 531 | 84.82% |
▷ Protected methods | 85 | 13.58% |
▷ Private methods | 10 | 1.60% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 109 | |
▷ Global constants | 4 | 3.67% |
▷ Class constants | 105 | 96.33% |
▷ Public constants | 105 | 100.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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/global/plugins/trumbowyg/ui/images/icons-white.png | 7.03KB | 2.96KB | ▼ 57.89% |
assets/global/plugins/trumbowyg/ui/images/icons-black-2x.png | 14.79KB | 4.95KB | ▼ 66.51% |
assets/global/plugins/trumbowyg/ui/images/icons-white-2x.png | 13.48KB | 4.79KB | ▼ 64.51% |
assets/img/icon.png | 0.70KB | 0.63KB | ▼ 9.74% |
assets/global/img/remove-icon-small.png | 0.19KB | 0.19KB | 0.00% |