Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.01ms] Passed 4 tests
A check of server-side resources used by Awesome Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 40.08 ▼3.63 |
Dashboard /wp-admin | 3.81 ▲0.51 | 52.76 ▲8.10 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 52.29 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 95.29 ▼11.81 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.25 ▲4.08 |
Awesome Shortcodes /wp-admin/options-general.php?page=awesome-shortcodes | 3.64 | 34.09 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
alg_awesome_shortcodes_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Awesome Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.14 | 1.73 ▼0.45 | 42.93 ▼5.45 |
Dashboard /wp-admin | 2,213 ▲28 | 4.84 ▼1.01 | 108.42 ▼10.53 | 36.73 ▼14.47 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 41.06 ▲0.74 | 36.91 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.30 ▲4.79 | 627.43 ▲28.80 | 59.13 ▼0.33 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.25 ▼0.15 | 102.81 ▲3.36 | 41.58 ▼4.13 |
Awesome Shortcodes /wp-admin/options-general.php?page=awesome-shortcodes | 806 | 2.03 | 24.59 | 26.65 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- alg_awesome_shortcodes_version
- db_upgraded
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: awesome, shortcode, shortcodes
awesome-shortcodes/awesome-shortcodes.php Passed 13 tests
The primary PHP file in "Awesome Shortcodes" version 1.7.0 is used by WordPress to initiate all plugin functionality
19 characters long description:
Awesome shortcodes.
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
Success! There were no dangerous files found in this plugin10,517 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 3 | 25 | 2,376 |
PHP | 11 | 157 | 691 | 1,881 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 4 | 3 | 26 | 63 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 82 | |
▷ Static methods | 1 | 1.22% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.66% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin