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.12MB] [CPU: ▼2.12ms] Passed 4 tests
An overview of server-side resources used by Suffusion Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.07 ▼0.47 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.92 ▼2.81 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 50.66 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 95.34 ▼4.84 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 34.80 ▼0.37 |
Suffusion Shortcodes /wp-admin/themes.php?page=suffusion-shortcodes | 3.45 | 33.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Suffusion Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.52 ▼0.75 | 5.43 ▲3.44 | 44.31 ▲1.22 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▼0.01 | 107.56 ▲1.49 | 41.56 ▼0.54 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▼0.01 | 39.91 ▲2.54 | 35.29 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.00 ▲5.35 | 591.29 ▼99.85 | 63.82 ▲10.96 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.04 | 97.31 ▼12.92 | 42.81 ▼5.76 |
Suffusion Shortcodes /wp-admin/themes.php?page=suffusion-shortcodes | 1,012 | 2.03 | 23.85 | 60.50 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/suffusion-shortcodes/suffusion-shortcodes.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tested up to: Version format is invalid
- Requires at least: Version format is invalid
suffusion-shortcodes/suffusion-shortcodes.php 92% from 13 tests
The principal PHP file in "Suffusion Shortcodes" v. 1.05 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 326 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected646 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 117 | 565 |
CSS | 2 | 3 | 3 | 80 |
JavaScript | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected