Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.81ms] Passed 4 tests
A check of server-side resources used by Assign Related Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.32 ▲2.60 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.04 ▼2.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.27 ▼1.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.00 ▼13.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.09 ▼2.31 |
Assign Related Post /wp-admin/options-general.php?page=rps_settings | 3.20 | 29.48 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Assign Related Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲57 | 13.39 ▼1.06 | 1.71 ▼0.02 | 42.68 ▼1.00 |
Dashboard /wp-admin | 2,216 ▲28 | 4.89 ▼0.96 | 107.18 ▼2.37 | 38.59 ▼7.38 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.02 ▼0.02 | 40.93 ▲0.01 | 34.96 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2 | 18.17 ▼4.97 | 596.31 ▼32.05 | 52.93 ▲2.38 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.21 ▲0.04 | 96.85 ▼4.60 | 42.32 ▼2.89 |
Assign Related Post /wp-admin/options-general.php?page=rps_settings | 810 | 2.06 | 26.20 | 26.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rps_settings
- > Notice in wp-content/plugins/assign-related-posts/pages/rps-functions.php+30
Undefined variable: status
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
assign-related-posts/assign-related-posts.php Passed 13 tests
Analyzing the main PHP file in "Assign Related Posts" version 1.0.1
39 characters long description:
Assigns related posts to specific post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,786 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 96 | 9 | 1,164 |
CSS | 2 | 12 | 26 | 475 |
PHP | 3 | 33 | 20 | 147 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 201.96KB | 51.59KB | ▼ 74.46% |
screenshot-2.png | 37.17KB | 20.56KB | ▼ 44.70% |
screenshot-1.png | 60.48KB | 15.83KB | ▼ 73.82% |
images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |