Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.33MB] [CPU: ▲5.16ms] Passed 4 tests
An overview of server-side resources used by Datafeedr API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.10 | 39.27 ▲1.96 |
Dashboard /wp-admin | 4.72 ▲1.37 | 55.35 ▼4.18 |
Posts /wp-admin/edit.php | 4.83 ▲1.47 | 56.11 ▲13.76 |
Add New Post /wp-admin/post-new.php | 7.32 ▲1.43 | 100.19 ▲15.37 |
Media Library /wp-admin/upload.php | 4.64 ▲1.41 | 44.30 ▲9.09 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 206 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
dfrapi_version |
widget_theysaidso_widget |
dfrapi_usage_notification_tracker |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Datafeedr API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲78 | 14.59 ▲0.26 | 1.72 ▲0.11 | 39.00 ▼2.30 |
Dashboard /wp-admin | 2,233 ▲56 | 5.66 ▲0.01 | 88.31 ▼3.08 | 41.54 ▼2.62 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.06 ▲0.05 | 39.76 ▲3.07 | 34.12 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.29 ▲0.11 | 688.36 ▼7.06 | 36.83 ▼14.71 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.27 ▲0.13 | 102.18 ▼11.35 | 46.83 ▲0.67 |
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: 8 options
- widget_recent-posts
- dfrapi_version
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- dfrapi_usage_notification_tracker
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/datafeedr-api/js/helpscout-beacon.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'Datafeedr_Timer' not found in wp-content/plugins/datafeedr-api/classes/class-datafeedr-image-importer.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/datafeedr-api/datafeedr-api.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tested up to: The plugin version is formatted incorrectly
datafeedr-api/datafeedr-api.php Passed 13 tests
This is the main PHP file of "Datafeedr API" version 1.3.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Connect to the Datafeedr API and configure your API settings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,773 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,694 | 3,324 | 6,427 |
CSS | 2 | 158 | 28 | 897 |
JavaScript | 5 | 96 | 40 | 436 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 324 | |
▷ Static methods | 9 | 2.78% |
▷ Public methods | 279 | 86.11% |
▷ Protected methods | 37 | 11.42% |
▷ Private methods | 8 | 2.47% |
Functions | 154 | |
▷ Named functions | 150 | 97.40% |
▷ Anonymous functions | 4 | 2.60% |
Constants | 28 | |
▷ Global constants | 19 | 67.86% |
▷ Class constants | 9 | 32.14% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/help.png | 0.77KB | 0.82KB | 0.00% |
images/icons/removefilter.png | 0.64KB | 0.56KB | ▼ 12.65% |
images/icons/addfilter.png | 0.67KB | 0.56KB | ▼ 16.23% |
images/icons/noimage.png | 2.75KB | 2.92KB | 0.00% |
images/networks/30x30/custom.png | 2.48KB | 1.73KB | ▼ 30.15% |