Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.37ms] 75% from 4 tests
A check of server-side resources used by Reuters Direct
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 649.84ms on /wp-admin/options-general.php?page=Reuters_Direct_Settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 39.41 ▲3.41 |
Dashboard /wp-admin | 3.77 ▲0.46 | 42.90 ▼3.23 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 50.58 ▼9.52 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 81.99 ▼8.13 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 38.45 ▲6.28 |
Reuters Direct /wp-admin/options-general.php?page=Reuters_Direct_Settings | 3.68 | 649.84 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Reuters_Direct_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Reuters Direct: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,517 ▼244 | 14.07 ▼0.55 | 1.80 ▲0.30 | 38.75 ▼2.16 |
Dashboard /wp-admin | 1,921 ▼256 | 5.89 ▲0.28 | 123.27 ▲38.23 | 44.44 ▲2.29 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 3.06 ▲1.09 | 92.41 ▲57.38 | 34.11 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 22.29 ▼0.92 | 648.69 ▼15.37 | 32.94 ▼17.74 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 5.51 ▲1.27 | 157.75 ▲52.38 | 43.09 ▼3.16 |
Reuters Direct /wp-admin/options-general.php?page=Reuters_Direct_Settings | 870 | 2.86 | 69.62 | 53.68 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- Reuters_Direct_version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/reuters-direct/includes/vendor/katzgrau/klogger/tests/LoggerTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/reuters-direct/includes/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/reuters-direct/includes/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/reuters-direct/includes/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/reuters-direct/includes/vendor/katzgrau/klogger/src/Logger.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: Please add images for these screenshots: #1 (Screenshot-1: Configuration screen of Reuters Direct), #2 (Screenshot-2: Configuration screen cont.), #3 (Screenshot-3: Configuration screen cont.), #4 (Screenshot-4: Posts screen in WordPress show the post tagging for Online Reports wo/ Images), #5 (Screenshot-5: Media gallery), #6 (Screenshot-6: Image detail screen showing attached metadata)
reuters-direct/reuters-direct.php 85% from 13 tests
This is the main PHP file of "Reuters Direct" version 3.0.0, 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:
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
- Git Repository: Please remove the Git repository from this plugin
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 detected2,961 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 331 | 745 | 2,235 |
CSS | 1 | 13 | 8 | 266 |
Markdown | 2 | 81 | 0 | 208 |
JSON | 4 | 0 | 0 | 164 |
JavaScript | 1 | 7 | 8 | 70 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 5 | 3.91% |
▷ Public methods | 121 | 94.53% |
▷ Protected methods | 3 | 2.34% |
▷ Private methods | 4 | 3.12% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 2.51MB with 1.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 100.44KB | 47.53KB | ▼ 52.68% |
screenshot-3.png | 39.00KB | 21.08KB | ▼ 45.96% |
screenshot-6.png | 983.19KB | 191.25KB | ▼ 80.55% |
assets/css/rwd_logo.png | 2.41KB | 1.79KB | ▼ 25.64% |
screenshot-5.png | 1,338.49KB | 283.98KB | ▼ 78.78% |