Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.10ms] Passed 4 tests
A check of server-side resources used by Related Posts For Genesis
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.52 ▼1.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.81 ▼0.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.36 ▲5.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.94 ▼3.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.41 ▲0.78 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Related Posts For Genesis
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.36 ▼1.04 | 4.13 ▲2.55 | 39.52 ▼16.03 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.03 | 93.67 ▼15.12 | 38.63 ▼3.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 38.85 ▲1.12 | 35.02 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.77 ▼5.43 | 658.41 ▲22.63 | 54.96 ▼6.68 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▲0.01 | 94.47 ▼5.02 | 40.83 ▼4.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/related-posts-for-genesis/admin/customizer.php
- > /wp-content/plugins/related-posts-for-genesis/lib/related-posts.php
- > /wp-content/plugins/related-posts-for-genesis/admin/sanitize-callbacks.php
- > /wp-content/plugins/related-posts-for-genesis/genesis-related.php
- > /wp-content/plugins/related-posts-for-genesis/lib/plugin-functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires php: Invalid version format
related-posts-for-genesis/genesis-related.php 92% from 13 tests
"Related Posts For Genesis" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("related-posts-for-genesis.php" instead of "genesis-related.php")
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
There were no executable files found in this plugin403 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 130 | 57 | 265 |
CSS | 1 | 22 | 0 | 126 |
JavaScript | 1 | 2 | 4 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected