Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/the-j-a-mortram-share-this-story/jamortram-share.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; JAMortramShareThisStory has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.94ms] Passed 4 tests
A check of server-side resources used by The J A Mortram Share This Story
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.92 ▼5.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.39 ▼1.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.91 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.51 ▼0.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.71 ▼1.05 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
The J A Mortram Share This Story: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲5 | 14.21 ▲0.01 | 1.93 ▲0.01 | 43.19 ▲1.28 |
Dashboard /wp-admin | 2,195 ▲15 | 5.66 ▲0.02 | 93.68 ▲6.32 | 41.41 ▲1.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 40.87 ▼0.66 | 36.26 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.33 ▲5.73 | 629.01 ▼67.81 | 50.16 ▲0.75 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.00 | 101.60 ▼0.32 | 47.96 ▲5.58 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- 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 | 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-j-a-mortram-share-this-story/jamortram-share.php:28
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: sharing, social media, the j a mortram
the-j-a-mortram-share-this-story/jamortram-share.php 85% from 13 tests
This is the main PHP file of "The J A Mortram Share This Story" version 1.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("the-j-a-mortram-share-this-story.php" instead of "jamortram-share.php")
- Description: Keep the plugin description shorter than 140 characters (currently 339 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected52 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 19 | 32 |
CSS | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/facebook.png | 1.98KB | 0.42KB | ▼ 78.92% |
img/twitter.png | 3.28KB | 1.04KB | ▼ 68.25% |
img/gplus.png | 3.66KB | 1.47KB | ▼ 59.66% |