Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼14.59ms] Passed 4 tests
Server-side resources used by Tagline Rotator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 21.14 ▼20.91 |
Dashboard /wp-admin | 3.33 ▲0.03 | 41.57 ▼7.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.42 ▼1.90 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.53 ▼28.30 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.98 ▼1.61 |
Tagline Rotator /wp-admin/options-general.php?page=taglineoptions | 3.19 | 26.15 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Tagline Rotator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲69 | 14.48 ▼0.20 | 1.91 ▲0.16 | 37.82 ▼0.63 |
Dashboard /wp-admin | 2,210 ▲21 | 4.86 ▼0.07 | 112.77 ▼6.06 | 43.45 ▼0.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 41.36 ▼0.09 | 33.02 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.14 ▲5.00 | 646.73 ▲26.58 | 63.00 ▲14.49 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.20 ▼0.01 | 97.41 ▼1.06 | 39.47 ▼3.28 |
Tagline Rotator /wp-admin/options-general.php?page=taglineoptions | 827 | 2.05 | 24.64 | 31.03 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=taglineoptions
- > Warning in wp-content/plugins/tagline-rotator/tagline-rotator.php+114
Invalid argument supplied for foreach()
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 is_admin() in wp-content/plugins/tagline-rotator/tagline-rotator.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: random, header, taglines
tagline-rotator/tagline-rotator.php Passed 13 tests
The main PHP script in "Tagline Rotator" version 2.3 is automatically included on every request by WordPress
106 characters long description:
Displays a random tagline from a database list. You can manage taglines through Settings->Tagline Rotator.
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
There were no executable files found in this plugin101 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 25 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 5 | |
▷ Static methods | 4 | 80.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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