Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▲3.90ms] Passed 4 tests
This is a short check of server-side resources used by Interserve Data Feeds
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 41.04 ▲3.15 |
Dashboard /wp-admin | 3.54 ▲0.24 | 48.15 ▲2.68 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 53.08 ▲6.82 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.56 ▲8.91 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.37 ▲2.95 |
Interserve Data /wp-admin/options-general.php?page=isdata | 3.37 | 36.47 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_isdata_storywidget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_isdata_childpageswidget |
widget_isdata_jobwidget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Interserve Data Feeds
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.25 ▼1.59 | 1.77 ▼0.02 | 44.57 ▼0.95 |
Dashboard /wp-admin | 2,207 ▼2 | 5.77 ▲0.90 | 96.94 ▼3.33 | 41.77 ▲1.75 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.14 ▲0.13 | 40.14 ▲5.75 | 41.15 ▲8.87 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.27 ▲0.72 | 641.66 ▼28.01 | 61.51 ▼9.77 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▼0.02 | 105.31 ▼8.92 | 47.00 ▼2.37 |
Interserve Data /wp-admin/options-general.php?page=isdata | 860 | 2.05 | 28.03 | 30.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_isdata_childpageswidget
- widget_recent-posts
- widget_isdata_jobwidget
- widget_isdata_storywidget
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ISDATA_PATH - assumed 'ISDATA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/interserve-data-feed/test/isdata/ManagerTest.php on line 11
- > PHP Warning
Use of undefined constant ISDATA_PATH - assumed 'ISDATA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/interserve-data-feed/isdata.php:13
- > PHP Warning
require_once(ISDATA_PATHFeed.php): failed to open stream: No such file or directory in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Warning
require_once(ISDATA_PATHFeed.php): failed to open stream: No such file or directory in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ISDATA_PATHFeed.php' (include_path='.:/usr/share/php') in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Warning
require_once(ISDATA_PATHFeed.php): failed to open stream: No such file or directory in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ISDATA_PATHFeed.php' (include_path='.:/usr/share/php') in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Warning
require_once(ISDATA_PATHFeed.php): failed to open stream: No such file or directory in wp-content/plugins/interserve-data-feed/test/isdata/FeedMock.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ISDATA_PATHManager.php' (include_path='.:/usr/share/php') in wp-content/plugins/interserve-data-feed/test/isdata/ManagerTest.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== interserve-data-feed ===
)
interserve-data-feed/isdata.php 92% from 13 tests
The main file in "Interserve Data Feeds" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("interserve-data-feed.php" instead of "isdata.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,691 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 420 | 1,125 | 2,677 |
XML | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 4 | 13.33% |
▷ Concrete classes | 26 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 1 | 0.54% |
▷ Public methods | 177 | 95.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 4.84% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 37 | |
▷ Global constants | 5 | 13.51% |
▷ Class constants | 32 | 86.49% |
▷ Public constants | 32 | 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
There were not PNG files found in your plugin