Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.80ms] Passed 4 tests
An overview of server-side resources used by Really Rich Results - JSON-LD Structured Data (Google Rich Results)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 51.60 ▲12.24 |
Dashboard /wp-admin | 3.49 ▲0.14 | 48.19 ▼13.35 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.93 ▲1.07 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 87.76 ▼11.29 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.19 ▲0.39 |
R³ Schema /wp-admin/tools.php?page=really_rich_results | 3.39 | 32.79 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Really Rich Results - JSON-LD Structured Data (Google Rich Results)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.20 ▼1.18 | 4.76 ▲3.10 | 41.03 ▲1.96 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼0.19 | 97.71 ▼4.45 | 38.75 ▼2.86 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.04 | 34.55 ▼8.51 | 31.92 ▼2.39 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,673 | 18.95 ▼4.21 | 887.31 ▲193.48 | 50.96 ▲0.28 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.12 | 96.58 ▼13.69 | 42.98 ▼4.51 |
R³ Schema /wp-admin/tools.php?page=really_rich_results | 954 | 7.18 | 166.42 | 37.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 50% 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
Please fix the following items
- 33× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Schema\\MediaObject' not found in wp-content/plugins/really-rich-results/src/Schema/ImageObject.php:15
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Data_Sources\\Abstract_Data_Source' not found in wp-content/plugins/really-rich-results/src/Data_Sources/WP_User.php:15
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Data_Sources\\Abstract_Data_Source' not found in wp-content/plugins/really-rich-results/src/Data_Sources/Site.php:13
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Schema\\Thing' not found in wp-content/plugins/really-rich-results/src/Schema/CreativeWork.php:17
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Data_Sources\\Abstract_Data_Source' not found in wp-content/plugins/really-rich-results/src/Data_Sources/WP_Comment.php:18
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Content_Types\\Abstract_Content_Type' not found in wp-content/plugins/really-rich-results/src/Content_Types/Archive.php:20
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Content_Types\\Abstract_Content_Type' not found in wp-content/plugins/really-rich-results/src/Content_Types/Single.php:16
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Content_Types\\Archive' not found in wp-content/plugins/really-rich-results/src/Content_Types/Blog_Index.php:16
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Schema\\CreativeWork' not found in wp-content/plugins/really-rich-results/src/Schema/Review.php:17
- > PHP Fatal error
Uncaught Error: Class 'Really_Rich_Results\\Schema\\Thing' not found in wp-content/plugins/really-rich-results/src/Schema/Action.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: rich results, schemaorg, seo, schema, structured data...
really-rich-results/really-rich-results.php 92% from 13 tests
This is the main PHP file of "Really Rich Results - JSON-LD Structured Data (Google Rich Results)" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,821 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 854 | 2,628 | 2,811 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 2 | 0 | 0 | 2 |
SVG | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 303 | |
▷ Static methods | 33 | 10.89% |
▷ Public methods | 221 | 72.94% |
▷ Protected methods | 28 | 9.24% |
▷ Private methods | 54 | 17.82% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.51MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 59.53KB | 60.11KB | 0.00% |
assets/banner-1544x500.png | 222.06KB | 94.02KB | ▼ 57.66% |
assets/banner-772x250.png | 94.27KB | 33.76KB | ▼ 64.18% |
assets/screenshot-1.png | 29.57KB | 29.82KB | 0.00% |
assets/rrr.png | 13.07KB | 6.81KB | ▼ 47.93% |