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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼145.65ms] Passed 4 tests
A check of server-side resources used by RandomTips
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 47.49 ▲11.03 |
Dashboard /wp-admin | 3.10 ▲0.04 | 42.75 ▼16.55 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 54.99 ▲4.54 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 112.80 ▼566.33 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.89 ▼4.25 |
Random Tips /wp-admin/options-general.php?page=randomtips | 3.01 | 34.13 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: 1 new table, no new options
New tables |
---|
wp_list_tips |
Browser metrics Passed 4 tests
Checking browser requirements for RandomTips
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 16.13 ▲0.46 | 11.76 ▲1.86 | 54.10 ▲5.06 |
Dashboard /wp-admin | 2,977 ▲50 | 6.54 ▲0.57 | 160.33 ▼32.63 | 116.26 ▲0.61 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.75 ▲0.04 | 77.34 ▼3.09 | 95.16 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,691 ▲97 | 16.06 ▼2.73 | 430.92 ▲25.51 | 112.53 ▼13.48 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.19 ▲0.16 | 174.86 ▼12.43 | 129.09 ▲1.09 |
Random Tips /wp-admin/options-general.php?page=randomtips | 1,332 | 2.79 | 84.30 | 93.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_list_tips
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/randomtips/Uninstall.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/randomtips/administration.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/randomtips/Uninstall.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/randomtips/RandomTips.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=randomtips
- > Network (severe)
wp-content/plugins/randomtips/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=randomtips
- > Network (severe)
wp-content/plugins/randomtips/images/sort_asc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: random, tips, shortcode, sentence
randomtips/RandomTips.php 92% from 13 tests
The principal PHP file in "RandomTips" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("randomtips.php" instead of "RandomTips.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
Success! There were no dangerous files found in this plugin1,146 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 3 | 36 | 437 |
PO File | 7 | 86 | 111 | 301 |
PHP | 5 | 52 | 38 | 254 |
JavaScript | 1 | 0 | 3 | 154 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin