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
Install script ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲3.10ms] Passed 4 tests
Server-side resources used by RDP PediaPress Embed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 46.70 ▲2.20 |
Dashboard /wp-admin | 4.02 ▲0.72 | 55.27 ▼3.58 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 58.35 ▲7.24 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 107.89 ▲9.49 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 44.03 ▲6.53 |
RDP PPE /wp-admin/options-general.php?page=rdp-pediapress-embed | 3.85 | 40.84 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by RDP PediaPress Embed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 13.65 ▼0.87 | 5.27 ▲3.38 | 40.74 ▼4.15 |
Dashboard /wp-admin | 2,207 ▲27 | 5.73 ▲0.07 | 97.07 ▲0.31 | 37.45 ▼3.47 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.08 ▲0.10 | 41.55 ▲4.59 | 35.91 ▼3.59 |
Add New Post /wp-admin/post-new.php | 2,136 ▲599 | 18.55 ▲0.48 | 624.94 ▼66.40 | 62.74 ▼8.14 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.41 ▲0.19 | 100.89 ▼11.58 | 43.78 ▼5.42 |
RDP PPE /wp-admin/options-general.php?page=rdp-pediapress-embed | 1,106 | 1.94 | 26.79 | 31.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/rdp-pediapress-embed/pl/rdpPPE.php
- > /wp-content/plugins/rdp-pediapress-embed/bl/rdpPPE_RSS.php
- > /wp-content/plugins/rdp-pediapress-embed/pl/rdpPPEAdminMenu.php
- > /wp-content/plugins/rdp-pediapress-embed/bl/rdpPPEGallery.php
- > /wp-content/plugins/rdp-pediapress-embed/bl/rdpPPEContent.php
- > /wp-content/plugins/rdp-pediapress-embed/bl/rdpPPEUtilities.php
- > /wp-content/plugins/rdp-pediapress-embed/bl/simple_html_dom.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=rdp-pediapress-embed
- > Deprecation (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== rdp-pediapress-embed ===
) - Screenshots: These screenshots require images: #1 (Embedded PediaPress book page), #2 (Gallery of PediaPress books), #3 (Media button to launch shortcode embed helper form), #4 (PediaPress book shortcode embed helper form), #5 (PediaPress gallery shortcode embed helper form)
rdp-pediapress-embed/index.php 92% from 13 tests
"RDP PediaPress Embed" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rdp-pediapress-embed.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin6,404 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 631 | 1,046 | 3,904 |
CSS | 17 | 337 | 56 | 2,238 |
JavaScript | 5 | 80 | 6 | 262 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 75.09 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 224 | |
▷ Static methods | 50 | 22.32% |
▷ Public methods | 147 | 65.62% |
▷ Protected methods | 59 | 26.34% |
▷ Private methods | 18 | 8.04% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 84 | |
▷ Global constants | 27 | 32.14% |
▷ Class constants | 57 | 67.86% |
▷ Public constants | 57 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.86MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pl/style/images/notice-icon.png | 0.44KB | 0.29KB | ▼ 32.44% |
pl/style/images/ui-bg_glass_100_e4f1fb_1x400.png | 0.34KB | 0.16KB | ▼ 54.29% |
pl/style/images/ui-bg_glass_50_3baae3_1x400.png | 0.33KB | 0.16KB | ▼ 50.89% |
pl/style/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.38KB | 0.18KB | ▼ 52.97% |
pl/style/images/ui-bg_flat_15_cd0a0a_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |