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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼134.33ms] Passed 4 tests
Server-side resources used by Factoid
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.07 | 39.00 ▲2.74 |
Dashboard /wp-admin | 3.13 ▲0.07 | 53.78 ▲4.44 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 51.30 ▲4.27 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 106.56 ▼548.78 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 40.18 ▲4.57 |
Factoid /wp-admin/options-general.php?page=wp_factoid_plugin | 3.06 | 30.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_factoid_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Factoid
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲224 | 16.86 ▲1.00 | 18.19 ▲7.33 | 51.82 ▲3.77 |
Dashboard /wp-admin | 2,972 ▲43 | 5.88 ▼0.09 | 142.21 ▼6.41 | 110.01 ▼2.21 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.68 ▼0.01 | 66.75 ▼3.58 | 96.35 ▲5.42 |
Add New Post /wp-admin/post-new.php | 1,686 ▼1,950 | 18.77 ▲3.85 | 395.97 ▼61.26 | 123.42 ▲14.20 |
Media Library /wp-admin/upload.php | 1,738 ▼69 | 5.00 ▼0.01 | 159.29 ▼7.14 | 130.60 ▲9.87 |
Factoid /wp-admin/options-general.php?page=wp_factoid_plugin | 1,427 | 2.80 | 61.61 | 77.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_factoid_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/factoid/factoid.php:177
- > PHP Fatal error
Uncaught Error: Class 'WP_octo_factoid' not found in wp-content/plugins/factoid/factoidsettings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: quotes, random, facts, content, trivia
factoid/factoid.php Passed 13 tests
The principal PHP file in "Factoid" v. 1.14 is loaded by WordPress automatically on each request
71 characters long description:
Place random quotes or facts on your site through shortcodes or widgets
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,059 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 94 | 514 |
CSS | 1 | 67 | 7 | 349 |
JavaScript | 1 | 7 | 23 | 196 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected