Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.97MB] [CPU: ▼36.70ms] Passed 4 tests
A check of server-side resources used by Proverbs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▼0.46 | 20.44 ▼19.23 |
Dashboard /wp-admin | 3.06 ▼0.29 | 24.69 ▼31.73 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 24.40 ▼22.84 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 23.72 ▼72.98 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 23.04 ▼10.40 |
Add New /wp-admin/post-new.php?post_type=proverb | 3.06 | 24.36 |
Proverb categories /wp-admin/edit-tags.php?taxonomy=proverb_category&post_type=proverb | 3.06 | 23.55 |
Proverbs /wp-admin/edit.php?post_type=proverb | 3.06 | 24.78 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
proverb_category_children |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Proverbs: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 13.96 ▼0.65 | 9.53 ▲7.63 | 35.97 ▼4.09 |
Dashboard /wp-admin | 2,241 ▲59 | 4.82 ▼1.04 | 113.96 ▼10.20 | 40.70 ▼5.49 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▲0.01 | 40.22 ▼2.89 | 35.72 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 22.22 ▼0.84 | 659.58 ▼16.68 | 53.54 ▼13.75 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.20 ▼0.09 | 108.16 ▲8.43 | 50.38 ▲5.91 |
Add New /wp-admin/post-new.php?post_type=proverb | 1,771 | 3.64 | 63.03 | 32.00 |
Proverb categories /wp-admin/edit-tags.php?taxonomy=proverb_category&post_type=proverb | 1,455 | 2.14 | 27.77 | 31.43 |
Proverbs /wp-admin/edit.php?post_type=proverb | 3,653 | 2.08 | 37.17 | 36.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- proverb_category_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 180 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=proverb
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/proverbs/public/partials/proverbs-public-display.php
- > /wp-content/plugins/proverbs/admin/partials/proverbs-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected
proverbs/proverbs.php 92% from 13 tests
"Proverbs" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 506 characters long)
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
No dangerous file extensions were detected1,012 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 175 | 1,267 | 889 |
JavaScript | 3 | 24 | 61 | 95 |
CSS | 3 | 7 | 8 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 3 | 3.75% |
▷ Public methods | 72 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin