Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.59ms] Passed 4 tests
This is a short check of server-side resources used by Daily Quotes Socrates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.65 ▼4.43 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.35 ▼0.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.44 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.53 ▼13.73 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.87 ▲0.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_socratesquote_randomquotewidget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Daily Quotes Socrates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▲0.32 | 1.87 ▼0.03 | 40.47 ▼0.06 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.94 | 110.92 ▲3.63 | 42.70 ▲0.64 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 38.14 ▼0.69 | 34.25 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.30 ▲0.12 | 651.62 ▼12.67 | 54.72 ▲0.70 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.08 | 97.86 ▼9.03 | 43.69 ▲0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_socratesquote_randomquotewidget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/daily-quotes-socrates/daily-quotes-socrates.php:112
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
daily-quotes-socrates/daily-quotes-socrates.php Passed 13 tests
The main file in "Daily Quotes Socrates" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Displays random Socrates quotes over the website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin123 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 47 | 123 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin