Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+168
Declaration of rss_per_page_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.02ms] Passed 4 tests
Server-side resources used by rss-per-page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.12 ▼36.33 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.39 ▼47.23 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.34 ▼46.01 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.47 ▼90.52 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.92 ▼33.04 |
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins | 2.05 | 5.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_rss_per_page_widget |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for rss-per-page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.25 ▼0.03 | 1.80 ▲0.01 | 41.83 ▼6.58 |
Dashboard /wp-admin | 2,203 ▲32 | 5.66 ▲0.06 | 90.79 ▼9.07 | 41.45 ▼2.42 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.00 ▼0.02 | 45.59 ▲8.09 | 41.07 ▲6.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.10 ▼0.13 | 616.08 ▼92.61 | 54.48 ▼11.15 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▼0.03 | 96.76 ▼11.00 | 41.72 ▼4.87 |
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins | 830 | 2.00 | 24.92 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+168
Declaration of rss_per_page_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_rss_per_page_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/plugins.php?page=funsite_plugins
- > Warning in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+168
Declaration of rss_per_page_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
- > GET request to /wp-admin/plugins.php?page=funsite_plugins
- > Deprecated in wp-content/plugins/rss-per-page/rss-per-page-plugin.php+164
Function create_function() is deprecated
- > GET request to /wp-admin/plugins.php?page=funsite_plugins
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in rss_per_page_widget is deprecated since version 4.3.0! Use __construct() instead.
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== rss-per-page ===
)
rss-per-page/rss-per-page.php Passed 13 tests
The principal PHP file in "rss-per-page" v. 1.6 is loaded by WordPress automatically on each request
84 characters long description:
Adds a field to pages and implements a widget to show a RSS depending on that field.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin316 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 25 | 173 |
CSS | 2 | 18 | 0 | 82 |
PO File | 1 | 14 | 14 | 55 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
basics/icon-128x128.png | 8.91KB | 4.47KB | ▼ 49.81% |