Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/random-post-loader/random.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; crand has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.11ms] Passed 4 tests
Server-side resources used by Random Post Loader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.85 ▼38.48 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.38 ▼44.96 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.44 ▼40.20 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.85 ▼88.79 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.96 ▼26.72 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_crand |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Random Post Loader: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.29 ▼1.06 | 1.68 ▼0.36 | 37.88 ▼9.06 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▲0.91 | 99.29 ▼17.45 | 37.44 ▼5.12 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.13 | 36.99 ▲0.59 | 34.36 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.09 ▲5.40 | 665.52 ▼15.11 | 54.85 ▼4.36 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.14 ▼0.11 | 112.00 ▲0.83 | 47.39 ▼1.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Deprecated in wp-content/plugins/random-post-loader/random.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; crand has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_crand
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/random-post-loader/random.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (`/assets/screenshot-1.png` - Admin panel), #2 (`/assets/screenshot-2.png` - Front-End Image)
- Plugin Name: You should set the name of your plugin on the first line (
=== random-post-loader ===
)
random-post-loader/random.php 92% from 13 tests
Analyzing the main PHP file in "Random Post Loader" version 1.1
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("random-post-loader.php" instead of "random.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected107 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 7 | 107 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin