Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/legi-display/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.82ms] Passed 4 tests
An overview of server-side resources used by Legi Display
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.16 ▲0.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.25 ▼3.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.59 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.85 ▼16.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.01 ▲0.82 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 159 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pluginSL_legi_display |
New WordPress options |
---|
can_compress_scripts |
legi_display_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Legi Display
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.44 ▼0.85 | 1.63 ▲0.09 | 38.88 ▼2.74 |
Dashboard /wp-admin | 2,209 ▲17 | 5.84 ▲0.91 | 93.78 ▼19.46 | 39.84 ▼2.86 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 39.31 ▼0.67 | 34.61 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 21.58 ▼1.42 | 703.02 ▲97.05 | 57.90 ▲5.36 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.02 | 94.83 ▼4.08 | 40.76 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/legi-display/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- 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
Everything seems fine, however 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
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/legi-display/legi-display.php
- > /wp-content/plugins/legi-display/core.class.php
- > /wp-content/plugins/legi-display/core.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/legi-display/core/templates/my-plugin.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/legi-display/core/templates/my-plugin.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (A comparison feature of different version of an article), #2 (The hierarchy tree of a code)
legi-display/legi-display.php 92% from 13 tests
The entry point to "Legi Display" version 1.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin18,134 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 32 | 3,879 | 0 | 8,452 |
PHP | 19 | 1,152 | 1,987 | 8,027 |
JavaScript | 5 | 206 | 229 | 778 |
CSS | 11 | 118 | 14 | 762 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 63.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 289.00 |
Average method complexity | 7.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 36 | 20.57% |
▷ Public methods | 172 | 98.29% |
▷ Protected methods | 3 | 1.71% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 compressed PNG files occupy 0.58MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/arrow_down.png | 0.27KB | 0.27KB | 0.00% |
core/img/tab_trad.png | 0.90KB | 1.08KB | 0.00% |
core/img/tab_list.png | 0.52KB | 0.43KB | ▼ 17.07% |
core/img/tree_node_plus.png | 0.15KB | 0.13KB | ▼ 12.50% |
core/img/progressbar.png | 1.43KB | 1.25KB | ▼ 12.96% |