Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.93ms] Passed 4 tests
Analyzing server-side resources used by Aparat Videos RSS Reader | GRAD
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.92 ▼2.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.79 ▼0.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.12 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.74 ▼1.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.39 ▲4.71 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Aparat Videos RSS Reader | GRAD
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.21 ▼1.13 | 1.83 ▼0.29 | 43.76 ▼1.64 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼0.04 | 101.29 ▼5.07 | 38.45 ▼3.63 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.02 | 36.81 ▲1.28 | 33.27 ▼6.31 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.46 ▼5.78 | 709.90 ▲61.50 | 55.08 ▼4.52 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.05 | 98.79 ▼8.41 | 45.16 ▲2.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/grad-aparat-rss/wp-aparat-grad.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/grad-aparat-rss/includes/widgets/class-widget-aparat-general.php:9
- > PHP Fatal error
Uncaught Error: Class 'Widget_Aparat_General__APARSSGRAD' not found in wp-content/plugins/grad-aparat-rss/includes/widgets/class-widget-aparat-selected-videos-list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/grad-aparat-rss/includes/shortcodes/shortcode-aparat-video.php:80
- > PHP Fatal error
Uncaught Error: Class 'Widget_Aparat_General__APARSSGRAD' not found in wp-content/plugins/grad-aparat-rss/includes/widgets/class-widget-aparat-rss-list.php:8
- > 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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Donate link: Invalid URI ("")
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== grad-aparat-rss ===
)
grad-aparat-rss/wp-aparat-grad.php 85% from 13 tests
The main PHP file in "Aparat Videos RSS Reader | GRAD" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("grad-aparat-rss.php" instead of "wp-aparat-grad.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
Good job! No executable or dangerous file extensions detected781 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 291 | 239 | 680 |
PO File | 1 | 41 | 64 | 101 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 37.75 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 57.89% |
▷ Protected methods | 8 | 42.11% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
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 |
public/images/aparat_icon_color_white_32.png | 1.84KB | 1.03KB | ▼ 43.70% |
public/images/aparat_icon_color_black_32.png | 1.85KB | 1.03KB | ▼ 44.03% |