Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.99ms] Passed 4 tests
Analyzing server-side resources used by Nite Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.99 ▲1.82 |
Dashboard /wp-admin | 3.40 ▲0.06 | 47.85 ▼17.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.79 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 99.69 ▼9.76 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 37.96 ▲1.20 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Nite Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.54 ▼1.02 | 7.71 ▲6.07 | 40.62 ▼1.52 |
Dashboard /wp-admin | 2,192 ▲15 | 5.64 ▼0.01 | 91.86 ▼6.95 | 41.58 ▼2.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.00 | 39.73 ▼0.04 | 35.63 ▼5.36 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▲0.21 | 660.12 ▲20.77 | 62.39 ▲11.86 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.01 | 97.46 ▼16.04 | 42.01 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nite-shortcodes/tinymce/langs.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nite-shortcodes/tinymce/tinymce.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nite-shortcodes/nite-shortcode.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nite-shortcodes/tinymce/shortcodes.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Donate link: Invalid URI found ("")
nite-shortcodes/nite-shortcode.php 85% from 13 tests
The main file in "Nite Shortcodes" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("nite-shortcodes.php" instead of "nite-shortcode.php")
Code Analysis Passed 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
No dangerous file extensions were detected1,524 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 107 | 53 | 853 |
CSS | 2 | 42 | 29 | 519 |
JavaScript | 3 | 16 | 33 | 152 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.44KB | 0.38KB | ▼ 14.79% |
images/code.png | 0.39KB | 0.50KB | 0.00% |
images/information.png | 0.51KB | 0.45KB | ▼ 11.00% |
images/tick.png | 0.34KB | 0.28KB | ▼ 15.99% |
images/speak.png | 0.37KB | 0.74KB | 0.00% |