Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests
A check of server-side resources used by RPS Include Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 35.97 ▼7.80 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.54 ▼0.97 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.73 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.89 ▼8.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.53 ▲2.53 |
RPS Include Content /wp-admin/options-general.php?page=rps_include_content_options_page | 3.21 | 29.12 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options |
---|
_rps_include_content_disable_hover |
_rps_include_content_private_content |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
_rps_include_content_flush_rewrite_rules |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by RPS Include Content
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.25 ▼1.13 | 1.97 ▼0.14 | 41.76 ▼5.53 |
Dashboard /wp-admin | 2,213 ▲28 | 4.84 ▼1.06 | 110.96 ▲10.78 | 38.99 ▼2.67 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.01 | 40.24 ▼1.05 | 33.84 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 22.94 ▲4.61 | 646.34 ▲40.90 | 55.58 ▼0.52 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▲0.01 | 96.27 ▼0.70 | 41.33 ▼2.28 |
RPS Include Content /wp-admin/options-general.php?page=rps_include_content_options_page | 840 | 2.01 | 24.94 | 27.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- _rps_include_content_private_content
- _rps_include_content_disable_hover
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- _rps_include_content_flush_rewrite_rules
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rps-include-content/rps-include-content.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: Add an image for screenshot #1 (The source content is flagged to the right when viewing the public site while logged in as a user with the "manage_rps_include_content" capability.)
rps-include-content/rps-include-content.php Passed 13 tests
This is the main PHP file of "RPS Include Content" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Adds the ability to include content on the current post or page from another.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected450 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 123 | 109 | 341 |
CSS | 1 | 14 | 0 | 109 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 98.00 |
▷ Minimum class complexity | 98.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 7.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
redpixel.png | 0.89KB | 0.12KB | ▼ 86.90% |