Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simple-quotation/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: ▼143.21ms] Passed 4 tests
This is a short check of server-side resources used by Simple Quotation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 34.02 ▲13.17 |
Dashboard /wp-admin | 3.06 ▲0.00 | 53.94 ▲7.64 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 44.03 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 88.99 ▼576.44 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 31.31 ▼6.61 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 167 new files
Database: 1 new table, no new options
New tables |
---|
wp_pluginSL_quotation |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Quotation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.82 ▲0.09 | 8.99 ▼0.87 | 47.96 ▲4.78 |
Dashboard /wp-admin | 2,973 ▲36 | 5.95 ▲0.04 | 142.16 ▼14.81 | 105.14 ▼5.86 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 71.89 ▲8.15 | 79.24 ▼8.93 |
Add New Post /wp-admin/post-new.php | 1,676 ▲95 | 18.88 ▼1.67 | 393.14 ▼12.58 | 104.26 ▼9.34 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.02 ▲0.01 | 158.66 ▲0.61 | 120.02 ▲6.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-quotation/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
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-quotation/simple-quotation.php
- > /wp-content/plugins/simple-quotation/core.class.php
- > /wp-content/plugins/simple-quotation/core.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/simple-quotation/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/simple-quotation/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
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (The administration of quotes), #2 (The configuration page of the plugin), #3 (Examples of quote rendering)
simple-quotation/core.class.php 85% from 13 tests
"Simple Quotation" version %s by %s', 'SL_framework'),$info['Version'],$info['Author']) ; ?> ()'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-quotation.php" instead of "core.class.php")
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "%s by %s', 'SL_framework'),$info['Version'],$info['Author']) ; ?> ()")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected16,981 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 35 | 3,985 | 0 | 8,721 |
PHP | 19 | 935 | 1,717 | 6,857 |
JavaScript | 6 | 219 | 254 | 829 |
CSS | 10 | 85 | 13 | 459 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 49.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 7.05 |
▷ 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 | 153 | |
▷ Static methods | 35 | 22.88% |
▷ Public methods | 150 | 98.04% |
▷ Protected methods | 3 | 1.96% |
▷ 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 PNG files occupy 1.06MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/tab_list.png | 0.52KB | 0.43KB | ▼ 17.07% |
core/img/title_popup.png | 2.72KB | 0.20KB | ▼ 92.65% |
img/icon-256x256.png | 118.61KB | 51.55KB | ▼ 56.53% |
core/img/tree_lastnode_minus.png | 0.14KB | 0.12KB | ▼ 13.89% |
img/icon-128x128.png | 36.64KB | 14.67KB | ▼ 59.98% |