Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.38ms] Passed 4 tests
A check of server-side resources used by Display Related Posts for Genesis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.85 ▼2.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.57 ▼4.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.05 ▼7.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.59 ▼15.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.23 ▲2.64 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Display Related Posts for Genesis
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▼0.27 | 1.76 ▲0.12 | 39.99 ▲1.62 |
Dashboard /wp-admin | 2,209 ▲17 | 5.97 ▲0.85 | 100.12 ▼12.32 | 38.66 ▼3.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 35.76 ▼4.58 | 29.34 ▼6.71 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.72 ▲0.02 | 601.81 ▼77.38 | 56.73 ▼5.71 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.03 | 94.29 ▼0.98 | 41.98 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\DisplayRelatedPostsForGenesis\\Customizer' not found in wp-content/plugins/display-related-posts-for-genesis/config/defaults.php:14
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\DisplayRelatedPostsForGenesis\\Component' not found in wp-content/plugins/display-related-posts-for-genesis/src/RelatedPosts.php:19
- > PHP Fatal error
Uncaught Error: Class 'SeoThemes\\DisplayRelatedPostsForGenesis\\Component' not found in wp-content/plugins/display-related-posts-for-genesis/src/Customizer.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
2 plugin tags: genesis, related posts
display-related-posts-for-genesis/display-related-posts-for-genesis.php Passed 13 tests
"Display Related Posts for Genesis" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Displays related posts for Genesis Framework powered sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin861 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 156 | 392 | 735 |
Markdown | 1 | 8 | 0 | 39 |
JSON | 3 | 0 | 0 | 38 |
Sass | 1 | 7 | 0 | 30 |
JavaScript | 1 | 3 | 0 | 18 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 1 | 16.67% |
Methods | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 4 | 11.76% |
▷ Private methods | 1 | 2.94% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 37 | |
▷ Global constants | 3 | 8.11% |
▷ Class constants | 34 | 91.89% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin