Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.22ms] Passed 4 tests
Analyzing server-side resources used by MaxReTweet - Optimize your Twitter Headlines
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.22 ▼0.68 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.00 ▼1.45 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.15 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.63 ▼6.36 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.54 ▲2.54 |
MaxRetweet Options /wp-admin/options-general.php?page=maxretweet-options | 3.25 | 34.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
maxretweet_plugin_version |
widget_recent-posts |
mfix_link |
theysaidso_admin_options |
mfix_link_title |
widget_recent-comments |
maxretweet_options |
db_upgraded |
Browser metrics Passed 4 tests
MaxReTweet - Optimize your Twitter Headlines: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.33 ▲0.05 | 1.88 ▲0.20 | 43.41 ▲4.69 |
Dashboard /wp-admin | 2,196 ▲22 | 5.56 ▼0.07 | 96.47 ▲7.04 | 42.35 ▼2.84 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▲0.04 | 35.87 ▼0.61 | 35.13 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6,256 ▲4,728 | 25.76 ▲2.58 | 903.96 ▲211.83 | 56.23 ▼5.37 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.00 | 99.24 ▼13.34 | 47.57 ▼2.59 |
MaxRetweet Options /wp-admin/options-general.php?page=maxretweet-options | 830 | 1.99 | 29.45 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- maxretweet_plugin_version
- theysaidso_admin_options
- maxretweet_options
- widget_recent-comments
- mfix_link_title
- can_compress_scripts
- mfix_link
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maxretweet/includes/class-share.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/maxretweet/maxretweet.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maxretweet/includes/class-link.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: javascript, share, twitter, retweet, connect
maxretweet/maxretweet.php Passed 13 tests
The entry point to "MaxReTweet - Optimize your Twitter Headlines" version 1.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
Maximize your posts retweet and share potential with multiple custom tweet headline options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected400 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 80 | 40 | 400 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/maxretweet_logo.png | 9.10KB | 3.86KB | ▼ 57.54% |