Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.69ms] Passed 4 tests
An overview of server-side resources used by Olympus Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.52 ▲0.29 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.60 ▼6.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.55 ▼0.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.16 ▼19.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.12 ▲3.57 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Olympus Shortcodes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.58 ▼0.82 | 9.05 ▲7.45 | 42.33 ▲1.66 |
Dashboard /wp-admin | 2,195 ▲15 | 5.70 ▲0.06 | 96.98 ▲5.94 | 40.40 ▲1.96 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.09 ▲0.14 | 42.71 ▲4.05 | 34.18 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▼0.55 | 683.95 ▲0.98 | 61.07 ▲4.47 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.23 ▲0.03 | 109.36 ▲4.62 | 47.27 ▲1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
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 errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/olympus-shortcodes/olympus-shortcodes.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
olympus-shortcodes/olympus-shortcodes.php Passed 13 tests
The main PHP script in "Olympus Shortcodes" version 1.0.4 is automatically included on every request by WordPress
61 characters long description:
Adds shortcodes you can use in your posts, pages and widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected4,942 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 34 | 76 | 2,923 |
JavaScript | 2 | 155 | 129 | 994 |
SVG | 3 | 0 | 0 | 706 |
PHP | 2 | 105 | 155 | 319 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/double-line.png | 2.73KB | 0.10KB | ▼ 96.39% |
images/dotted-light.png | 2.74KB | 0.10KB | ▼ 96.37% |
images/minus.png | 0.08KB | 0.10KB | 0.00% |
images/plus.png | 0.09KB | 0.10KB | 0.00% |
images/slider-control-left.png | 2.77KB | 0.12KB | ▼ 95.84% |