Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.83ms] Passed 4 tests
An overview of server-side resources used by melascrivi-plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.76 ▼9.54 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.78 ▼3.27 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 50.05 ▲3.31 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 91.97 ▼5.80 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.25 ▲3.60 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 543 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for melascrivi-plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.63 ▼0.95 | 1.92 ▼0.03 | 39.00 ▼2.28 |
Dashboard /wp-admin | 2,220 ▲35 | 5.84 ▼0.02 | 98.65 ▼2.15 | 85.94 ▲41.76 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.04 | 38.66 ▼2.45 | 36.63 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 18.35 ▼4.78 | 683.38 ▼0.26 | 56.74 ▲0.72 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.19 ▲0.03 | 92.47 ▼12.16 | 71.99 ▲29.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/melascrivi/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/melascrivi/admin_init.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/melascrivi/melascrivi_plugin.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== melascrivi ===
)
melascrivi/melascrivi_plugin.php 92% from 13 tests
The principal PHP file in "melascrivi-plugin" v. 1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("melascrivi.php" instead of "melascrivi_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin13,099 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 1,253 | 5,779 | 5,388 |
PHP | 4 | 572 | 109 | 3,645 |
CSS | 11 | 453 | 402 | 3,155 |
PO File | 2 | 414 | 414 | 911 |
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.25 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 3 | 6.12% |
▷ Private methods | 1 | 2.04% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
475 PNG files occupy 1.07MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/navicons/166.png | 0.64KB | 0.48KB | ▼ 25.95% |
css/images/navicons-small/107.png | 0.43KB | 0.42KB | ▼ 2.49% |
css/images/500.png | 13.57KB | 4.24KB | ▼ 68.79% |
css/images/navicons-small/27.png | 0.52KB | 0.55KB | 0.00% |
css/images/navicons/91.png | 1.51KB | 1.34KB | ▼ 11.15% |