Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/twitterply-for-webmasters/twitterply.php+572
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼56.96ms] Passed 4 tests
Analyzing server-side resources used by Twitterply
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 6.43 ▼33.82 |
Dashboard /wp-admin | 2.19 ▼1.11 | 8.36 ▼40.60 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 7.77 ▼45.83 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 7.90 ▼107.58 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 10.38 ▼28.17 |
Twitter Feed /wp-admin/options-general.php?page=twitterply | 2.19 | 7.55 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
twitterply_settings |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
twitterply_version |
widget_twitterplywidget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitterply
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.20 ▼0.08 | 1.65 ▲0.00 | 43.52 ▼2.10 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.06 | 88.08 ▲3.24 | 41.90 ▼4.25 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▲0.01 | 34.36 ▼5.29 | 36.28 ▼5.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.56 ▲0.30 | 636.30 ▼35.75 | 50.57 ▼6.06 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▲0.01 | 101.05 ▼16.41 | 43.66 ▼5.50 |
Twitter Feed /wp-admin/options-general.php?page=twitterply | 1,017 | 2.14 | 23.19 | 27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/twitterply-for-webmasters/twitterply.php+572
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_twitterplywidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=twitterply
- > Deprecated in wp-content/plugins/twitterply-for-webmasters/twitterply.php+572
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/twitterply-for-webmasters/includes/Twitter/connect.php
- > /wp-content/plugins/twitterply-for-webmasters/includes/Twitter/clearsessions.php
- > /wp-content/plugins/twitterply-for-webmasters/includes/Twitter/test.php
- > /wp-content/plugins/twitterply-for-webmasters/includes/Twitter/callback.php
- > /wp-content/plugins/twitterply-for-webmasters/includes/Twitter/index.php
- > /wp-content/plugins/twitterply-for-webmasters/includes/Twitter/redirect.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/twitteroauth/twitteroauth.php on line 118
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/twitterply-for-webmasters/twitterply.php:35
- > PHP Notice
Undefined index: oauth_verifier in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/callback.php on line 23
- > PHP Notice
Undefined index: access_token in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/test.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/test.php on line 20
- > PHP Notice
Undefined index: oauth_token_secret in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/redirect.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/index.php on line 20
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/callback.php on line 20
- > PHP Notice
Undefined index: access_token in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/index.php on line 17
- > PHP Notice
Undefined index: oauth_token in wp-content/plugins/twitterply-for-webmasters/includes/Twitter/twitteroauth/twitteroauth.php on line 82
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (2.) image required
twitterply-for-webmasters/twitterply.php 85% from 13 tests
"Twitterply" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("twitterply-for-webmasters.php" instead of "twitterply.php")
- Description: The description should be shorter than 140 characters (currently 152 characters long)
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
There were no executable files found in this plugin1,285 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 393 | 649 | 1,285 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 15 | 14.85% |
▷ Public methods | 89 | 88.12% |
▷ Protected methods | 2 | 1.98% |
▷ Private methods | 10 | 9.90% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Twitter/images/lighter.png | 2.43KB | 1.77KB | ▼ 27.11% |
includes/Twitter/images/darker.png | 2.31KB | 1.70KB | ▼ 26.41% |