Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲2.04ms] Passed 4 tests
A check of server-side resources used by Library
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.50 ▼0.22 |
Dashboard /wp-admin | 3.37 ▲0.06 | 57.97 ▲6.14 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.38 ▲4.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.79 ▲1.10 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.64 ▲3.24 |
Add New /wp-admin/post-new.php?post_type=library_term | 3.40 | 48.23 |
Library /wp-admin/edit.php?post_type=library_term | 3.33 | 42.32 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Library
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.35 ▼0.21 | 2.20 ▲0.60 | 44.51 ▼3.93 |
Dashboard /wp-admin | 2,225 ▲48 | 5.63 ▼0.01 | 83.24 ▼8.40 | 40.97 ▲3.09 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 1.98 ▼0.02 | 38.60 ▲2.83 | 36.75 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,591 ▲63 | 23.15 ▲0.12 | 687.19 ▼2.45 | 58.39 ▼4.75 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.09 ▼0.12 | 113.69 ▼6.28 | 47.66 ▼0.24 |
Add New /wp-admin/post-new.php?post_type=library_term | 2,168 | 7.69 | 167.35 | 67.88 |
Library /wp-admin/edit.php?post_type=library_term | 1,088 | 1.98 | 31.54 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: shortcodes, library, wp-strings, dictionary, strings...
library/library.php Passed 13 tests
The main file in "Library" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
Create a library of reusable terms (strings) and display their contents anywhere on your site with a shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin202 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 73 | 207 | 202 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 4 | 28.57% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected