Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/formatting-correcter/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: ▼3.34ms] Passed 4 tests
An overview of server-side resources used by Formatting correcter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.23 ▼4.90 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.13 ▼1.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.27 ▼4.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.44 ▼2.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.62 ▼1.09 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 159 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pluginSL_formatting_correcter |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Formatting correcter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.58 ▲0.23 | 1.68 ▼0.15 | 37.85 ▼8.49 |
Dashboard /wp-admin | 2,195 ▲17 | 5.59 ▼0.10 | 91.94 ▼18.83 | 38.54 ▼6.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.06 | 39.41 ▼0.26 | 34.19 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼4 | 23.36 ▲0.38 | 659.00 ▼33.90 | 60.24 ▼7.44 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.15 ▼0.06 | 95.32 ▼6.65 | 42.36 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/formatting-correcter/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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/formatting-correcter/formatting-correcter.php
- > /wp-content/plugins/formatting-correcter/core.php
- > /wp-content/plugins/formatting-correcter/core.class.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/formatting-correcter/core/templates/my-plugin.php on line 18
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/formatting-correcter/core/templates/my-plugin.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 (Results page), #2 (Modification page), #3 (Parameters page)
formatting-correcter/core.class.php 85% from 13 tests
The entry point to "Formatting correcter" version %s by %s', 'SL_frame... is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("formatting-correcter.php" instead of "core.class.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "%s by %s', 'SL_frame...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin18,019 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 3,838 | 0 | 8,351 |
PHP | 19 | 1,151 | 1,984 | 8,169 |
JavaScript | 6 | 220 | 232 | 925 |
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
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 63.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 8.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.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 | 168 | |
▷ Static methods | 36 | 21.43% |
▷ Public methods | 165 | 98.21% |
▷ Protected methods | 3 | 1.79% |
▷ 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
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.80MB with 0.14MB in potential savings
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/tree_node_minus.png | 0.14KB | 0.12KB | ▼ 15.17% |
img/banner-772x250.png | 113.96KB | 37.59KB | ▼ 67.02% |
core/img/tab_mail.png | 0.66KB | 0.62KB | ▼ 6.63% |
core/img/tab_empty.png | 0.08KB | 0.09KB | 0.00% |