Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WP_PAT_Twitter' does not have a method 'activate'
Server metrics [RAM: ▲0.33MB] [CPU: ▼11.30ms] Passed 4 tests
Server-side resources used by WP-PAT-Twitter Facilitator Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.62 | 43.62 ▲0.34 |
Dashboard /wp-admin | 4.01 ▲0.71 | 58.57 ▲8.20 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 55.02 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.24 ▼0.65 | 48.67 ▼51.18 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 44.07 ▲4.63 |
PAT Twitter Settings /wp-admin/options-general.php?page=wp-patt_settings | 3.82 | 38.05 |
Install PAT Twitter /wp-admin/tools.php?page=wp-patt_download_userscript | 3.84 | 38.32 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP-PAT-Twitter Facilitator Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.10 ▼0.27 | 1.87 ▲0.19 | 43.06 ▼2.45 |
Dashboard /wp-admin | 2,197 ▲23 | 5.58 ▼0.02 | 86.88 ▼14.70 | 36.60 ▼4.17 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.03 | 34.66 ▼1.96 | 37.37 ▲4.78 |
Add New Post /wp-admin/post-new.php | 1,532 ▼3 | 22.94 ▲4.62 | 657.26 ▼8.34 | 57.81 ▼10.58 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.24 ▼0.01 | 106.79 ▼6.22 | 44.95 ▼4.49 |
PAT Twitter Settings /wp-admin/options-general.php?page=wp-patt_settings | 876 | 1.96 | 23.87 | 27.49 |
Install PAT Twitter /wp-admin/tools.php?page=wp-patt_download_userscript | 767 | 1.99 | 24.36 | 23.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-patt_settings
- > Notice in wp-content/plugins/wp-pat-twitter/wp-pat-twitter.php+371
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-pat-twitter/wp-pat-twitter.php:16
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (After installing Predator Alert Tool for Twitter, create and paste your Twitter API key and secret into its settings screen.) image required
wp-pat-twitter/wp-pat-twitter.php 85% from 13 tests
The primary PHP file in "WP-PAT-Twitter Facilitator Plugin" version 0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 499 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,218 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 1,911 | 4,448 | 6,961 |
PHP | 7 | 195 | 1,519 | 3,484 |
JSON | 3 | 29 | 0 | 272 |
Markdown | 3 | 65 | 0 | 235 |
CSS | 1 | 43 | 5 | 222 |
HTML | 2 | 14 | 11 | 39 |
make | 1 | 2 | 0 | 5 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 126.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 621.00 |
Average method complexity | 11.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 3 | 37.50% |
▷ Concrete classes | 5 | 62.50% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 88 | 88.89% |
▷ Protected methods | 2 | 2.02% |
▷ Private methods | 9 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 80.95KB | 26.92KB | ▼ 66.75% |