Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.09ms] Passed 4 tests
This is a short check of server-side resources used by LionScripts: Site Maintenance & Noindex Nofollow Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.81 ▼0.95 |
Dashboard /wp-admin | 3.40 ▲0.05 | 45.66 ▼15.22 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.06 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.56 ▼4.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.74 ▲2.24 |
Site Maintenance /wp-admin/admin.php?page=lionscripts-maintenance-and-noindex-nofollow | 3.29 | 32.36 |
Dashboard /wp-admin/admin.php?page=lionscripts-dashboard | 3.29 | 33.32 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LionScripts: Site Maintenance & Noindex Nofollow Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.62 ▼0.93 | 1.70 ▼0.31 | 43.87 ▼7.39 |
Dashboard /wp-admin | 2,235 ▲47 | 5.84 ▼0.05 | 95.84 ▼24.87 | 79.68 ▲33.98 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 1.99 ▼0.02 | 38.38 ▲0.49 | 36.22 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.31 ▼0.04 | 766.61 ▲130.83 | 51.52 ▼8.01 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.19 ▼0.03 | 101.93 ▲1.79 | 69.78 ▲26.49 |
Site Maintenance /wp-admin/admin.php?page=lionscripts-maintenance-and-noindex-nofollow | 928 | 2.05 | 30.92 | 35.98 |
Dashboard /wp-admin/admin.php?page=lionscripts-dashboard | 942 | 2.09 | 25.38 | 30.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/maintenance-and-noindex-nofollow/index.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/maintenance-and-noindex-nofollow/lib/lionscripts_plg_mnn.class.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/maintenance-and-noindex-nofollow/lib/lionscripts_plg_mnn.class.php:29
- > PHP Fatal error
Uncaught Error: Class 'lionscripts_plg' not found in wp-content/plugins/maintenance-and-noindex-nofollow/lib/lionscripts_plg_mnn.class.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
- Screenshots: Screenshot #1 (Main Page (Options Page)) image required
maintenance-and-noindex-nofollow/maintenance-noindex-nofollow.php 85% from 13 tests
The main PHP file in "LionScripts: Site Maintenance & Noindex Nofollow Plugin" ver. 2.1 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:
- Description: The description should be shorter than 140 characters (currently 302 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("maintenance-and-noindex-nofollow.php" instead of "maintenance-noindex-nofollow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected645 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 73 | 21 | 424 |
CSS | 1 | 34 | 2 | 221 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
10 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.38KB | 15.33KB | ▼ 51.14% |
assets/images/icon-16.png | 3.64KB | 0.81KB | ▼ 77.71% |
assets/images/ls-icon-16.png | 1.14KB | 0.63KB | ▼ 44.34% |
assets/images/pro.png | 59.35KB | 24.43KB | ▼ 58.84% |
assets/images/socialize2.png | 154.36KB | 58.84KB | ▼ 61.88% |