Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼14.24ms] Passed 4 tests
This is a short check of server-side resources used by c3 Random Quotes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.25 ▼5.25 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.92 ▼19.75 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.55 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.39 ▼24.84 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.02 ▼7.10 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_c3rq_widget |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for c3 Random Quotes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.69 ▲0.14 | 1.76 ▼0.28 | 35.22 ▼6.97 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▼0.01 | 95.85 ▲6.41 | 42.37 ▼0.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.00 | 36.37 ▼3.03 | 31.03 ▼7.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.43 ▲0.44 | 674.44 ▲60.69 | 56.60 ▼0.84 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.02 | 101.50 ▼17.33 | 42.15 ▼3.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_c3rq_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c3-random-quotes/c3randomquotes.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The widget settings screen.), #2 (A quote displayed in a page header showing the white, leading quotation mark image.), #3 (A quote displayed in a page header showing the leading quotation mark as part of the quotation text.), #4 (A quote displayed in a sidebar showing the leading quotation mark as part of the quotation text.)
c3-random-quotes/c3randomquotes.php 92% from 13 tests
The main PHP script in "c3 Random Quotes" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("c3-random-quotes.php" instead of "c3randomquotes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin137 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 44 | 134 |
CSS | 1 | 0 | 0 | 3 |
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.23 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 7.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 3 | |
▷ Named functions | 3 | 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
11 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 11.96KB | 3.01KB | ▼ 74.83% |
images/quote-yellow.png | 0.16KB | 0.18KB | 0.00% |
screenshot-4.png | 18.11KB | 4.92KB | ▼ 72.83% |
images/quote-black.png | 0.14KB | 0.18KB | 0.00% |
images/quote-white.png | 0.16KB | 0.18KB | 0.00% |