Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.90ms] Passed 4 tests
Analyzing server-side resources used by Virtual Library
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.59 ▼2.10 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.16 ▼1.87 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.67 ▲1.64 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 93.66 ▼1.28 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.43 ▲2.22 |
Add New /wp-admin/post-new.php?post_type=book | 3.47 | 53.57 |
Books Category /wp-admin/edit-tags.php?taxonomy=book-category&post_type=book | 3.31 | 37.47 |
All Books /wp-admin/edit.php?post_type=book | 3.36 | 36.12 |
Hashtag /wp-admin/edit-tags.php?taxonomy=book-hashtags&post_type=book | 3.31 | 34.05 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Virtual Library
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲116 | 13.22 ▼1.33 | 1.88 ▼0.23 | 40.88 ▼4.59 |
Dashboard /wp-admin | 2,274 ▲86 | 5.85 ▼0.00 | 98.96 ▼3.43 | 41.66 ▲0.10 |
Posts /wp-admin/edit.php | 2,160 ▲68 | 2.01 ▲0.02 | 40.62 ▼0.79 | 35.63 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,570 ▲56 | 17.86 ▲0.20 | 658.25 ▼22.16 | 54.02 ▼5.01 |
Media Library /wp-admin/upload.php | 1,459 ▲68 | 4.15 ▼0.05 | 112.42 ▲18.06 | 51.56 ▲5.84 |
Add New /wp-admin/post-new.php?post_type=book | 2,840 | 7.94 | 179.67 | 69.73 |
Books Category /wp-admin/edit-tags.php?taxonomy=book-category&post_type=book | 1,330 | 2.27 | 28.55 | 32.14 |
All Books /wp-admin/edit.php?post_type=book | 1,185 | 1.96 | 31.48 | 31.04 |
Hashtag /wp-admin/edit-tags.php?taxonomy=book-hashtags&post_type=book | 1,305 | 2.31 | 27.55 | 32.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/virtual-library/templates/hashtags-book-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/virtual-library/templates/single-book-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/virtual-library/virtual-library.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/virtual-library/templates/category-book-template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== virtual-library ===
)
virtual-library/virtual-library.php Passed 13 tests
"Virtual Library" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Plugin develop Wordpress and making from your site virtual library.
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
Good job! No executable or dangerous file extensions detected1,104 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 172 | 48 | 523 |
PO File | 2 | 148 | 174 | 410 |
CSS | 1 | 45 | 1 | 153 |
SVG | 3 | 0 | 2 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin