Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.99ms] Passed 4 tests
Server-side resources used by Plot My Posts and Tweets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 45.12 ▼3.33 |
Dashboard /wp-admin | 3.49 ▲0.10 | 49.81 ▼21.33 |
Posts /wp-admin/edit.php | 3.60 ▲0.20 | 54.34 ▲4.02 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.14 | 92.11 ▼11.31 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 45.32 ▲5.75 |
Posts/Tweets Map /wp-admin/options-general.php?page=plotmypostsandtweets_settings | 3.36 | 30.53 |
Posts/Tweets Map /wp-admin/edit.php?page=plotmypostsandtweets | 3.39 | 37.71 |
Server storage [IO: ▲0.45MB] [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: 24 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_plotmypostsandtweets |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
pmpat_hash |
db_upgraded |
theysaidso_admin_options |
pmpat_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Plot My Posts and Tweets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 13.99 ▼0.53 | 1.51 ▼0.46 | 41.51 ▼3.51 |
Dashboard /wp-admin | 2,206 ▲26 | 5.63 ▼0.21 | 112.43 ▲13.49 | 39.79 ▼5.61 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.55 ▲0.57 | 44.48 ▲3.19 | 33.41 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,697 ▲164 | 23.19 ▲0.12 | 669.48 ▲32.40 | 38.44 ▼19.43 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 5.10 ▲0.90 | 108.36 ▲4.20 | 48.34 ▲0.83 |
Posts/Tweets Map /wp-admin/options-general.php?page=plotmypostsandtweets_settings | 931 | 2.53 | 31.87 | 34.31 |
Posts/Tweets Map /wp-admin/edit.php?page=plotmypostsandtweets | 786 | 2.51 | 31.60 | 26.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- pmpat_hash
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=plotmypostsandtweets_settings
- > Notice in wp-content/plugins/plot-my-tweets-and-posts/plotmypostsandtweets.php+154
Undefined index: previous_key
- > GET request to /wp-admin/options-general.php?page=plotmypostsandtweets_settings
- > Notice in wp-content/plugins/plot-my-tweets-and-posts/plotmypostsandtweets.php+295
Undefined variable: locked
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/plot-my-tweets-and-posts/plotmypostsandtweets.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=plotmypostsandtweets
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?v=3.5&sensor=false&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plot My Posts and Tweets Map), #2 (Plot My Posts and Tweets Admin Area)
plot-my-tweets-and-posts/plotmypostsandtweets.php 92% from 13 tests
"Plot My Posts and Tweets" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("plot-my-tweets-and-posts.php" instead of "plotmypostsandtweets.php")
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
Good job! No executable or dangerous file extensions detected2,564 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 246 | 187 | 1,724 |
JavaScript | 3 | 256 | 500 | 814 |
CSS | 2 | 2 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 205.00 |
▷ Minimum class complexity | 205.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.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 | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 5 | 14.29% |
▷ Protected methods | 30 | 85.71% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 48 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pin_twitpic_small.png | 0.64KB | 0.61KB | ▼ 5.78% |
images/icon_tweet.png | 0.57KB | 0.48KB | ▼ 16.27% |
images/pin_post_small.png | 0.76KB | 0.81KB | 0.00% |
images/pin_shadow.png | 0.53KB | 0.51KB | ▼ 2.04% |
images/icon_post.png | 0.49KB | 0.49KB | ▼ 0.80% |