Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼140.45ms] Passed 4 tests
Analyzing server-side resources used by Amity Related Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 34.11 ▲8.05 |
Dashboard /wp-admin | 3.33 ▲0.28 | 52.73 ▲2.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.27 | 55.88 ▲7.99 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 92.93 ▼574.53 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 34.95 ▲2.21 |
ARP Options /wp-admin/options-general.php?page=amity-related-posts | 3.19 | 38.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 2 new options
New WordPress options |
---|
arp_styles |
arp_basics |
Browser metrics Passed 4 tests
A check of browser resources used by Amity Related Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,014 ▲408 | 18.27 ▲2.67 | 21.72 ▲8.37 | 47.38 ▲0.31 |
Dashboard /wp-admin | 3,192 ▲259 | 8.07 ▲2.10 | 197.23 ▲6.54 | 115.64 ▼2.10 |
Posts /wp-admin/edit.php | 3,006 ▲267 | 4.36 ▲1.64 | 99.38 ▲26.78 | 100.31 ▲8.48 |
Add New Post /wp-admin/post-new.php | 1,626 ▲11 | 18.60 ▼2.56 | 415.90 ▲103.64 | 113.82 ▼0.81 |
Media Library /wp-admin/upload.php | 1,837 ▲89 | 4.91 ▼0.09 | 132.93 ▼45.70 | 120.57 ▼10.15 |
ARP Options /wp-admin/options-general.php?page=amity-related-posts | 3,725 | 5.71 | 174.69 | 87.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% 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 | 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AmityTheme_Settings_API' not found in wp-content/plugins/amity-related-posts/admin/amity-settings-api.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function arp_get_option() in wp-content/plugins/amity-related-posts/inc/style-css.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== amity-related-posts ===
) - Tags: There are too many tags (12 tag instead of maximum 10)
amity-related-posts/amity-related-posts.php 85% from 13 tests
The entry point to "Amity Related Posts" version 1.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin928 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 222 | 236 | 773 |
CSS | 1 | 39 | 8 | 155 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
PNG images were not found in this plugin