Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.76ms] Passed 4 tests
Server-side resources used by Motivating Quotes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 42.83 ▲20.11 |
Dashboard /wp-admin | 3.08 ▲0.02 | 44.11 ▼2.38 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 43.16 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 93.48 ▼568.01 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 30.39 ▼9.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_motivational_quotes |
New WordPress options |
---|
motiv_quotes_db_version |
Browser metrics Passed 4 tests
Motivating Quotes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,750 ▲154 | 16.12 ▲0.62 | 9.17 ▲0.81 | 47.42 ▼3.85 |
Dashboard /wp-admin | 3,007 ▲71 | 5.91 ▼0.10 | 137.15 ▼29.54 | 118.98 ▲1.23 |
Posts /wp-admin/edit.php | 2,776 ▲37 | 2.68 ▼0.01 | 70.98 ▲1.01 | 87.21 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,697 ▲14 | 18.96 ▲0.48 | 372.40 ▼8.61 | 106.84 ▼12.77 |
Media Library /wp-admin/upload.php | 1,844 ▲37 | 5.01 ▼0.01 | 166.30 ▲20.48 | 122.08 ▼5.38 |
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
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_motivational_quotes
- This plugin did not uninstall successfully, leaving 1 option in the database
- motiv_quotes_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/motivational-quotes/includes/liste.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/motivational-quotes/includes/main-options.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/motivational-quotes/motivational-quotes.php:97
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/motivational-quotes/includes/liste.php on line 44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Render when a quote is displayed) image not found
motivational-quotes/motivational-quotes.php 92% from 13 tests
The primary PHP file in "Motivating Quotes" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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
There were no executable files found in this plugin216 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 32 | 200 |
CSS | 1 | 3 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 14 | |
▷ Named functions | 14 | 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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/quote.png | 0.48KB | 0.69KB | 0.00% |
images/quote2.png | 0.57KB | 0.72KB | 0.00% |
screenshot-1.PNG | 12.83KB | 7.34KB | ▼ 42.77% |