Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼5.01ms] Passed 4 tests
Analyzing server-side resources used by CASA Reference
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.44 ▼7.99 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.39 ▼4.73 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.10 ▲5.73 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.19 ▼10.08 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.70 ▲2.75 |
References /wp-admin/options-general.php?page=casa-reference-settings | 3.24 | 32.34 |
All References /wp-admin/edit.php?post_type=reference | 3.32 | 35.73 |
Upload /wp-admin/edit.php?post_type=reference&page=casa-reference-upload | 3.24 | 31.66 |
Add New /wp-admin/post-new.php?post_type=reference | 3.33 | 45.16 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for CASA Reference
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲136 | 13.59 ▼0.81 | 1.88 ▲0.06 | 41.52 ▼1.08 |
Dashboard /wp-admin | 2,246 ▲55 | 4.91 ▼0.99 | 102.97 ▼2.06 | 37.62 ▼4.23 |
Posts /wp-admin/edit.php | 2,135 ▲49 | 2.07 ▲0.06 | 40.80 ▲4.12 | 35.87 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6,494 ▲4,961 | 20.34 ▼2.91 | 933.84 ▲271.88 | 68.83 ▲3.01 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.22 ▲0.06 | 106.30 ▼5.69 | 45.19 ▼3.36 |
References /wp-admin/options-general.php?page=casa-reference-settings | 787 | 1.71 | 29.07 | 26.80 |
All References /wp-admin/edit.php?post_type=reference | 1,093 | 2.02 | 33.83 | 28.89 |
Upload /wp-admin/edit.php?post_type=reference&page=casa-reference-upload | 812 | 1.71 | 24.34 | 29.79 |
Add New /wp-admin/post-new.php?post_type=reference | 1,950 | 3.70 | 61.98 | 30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Casa\\Reference\\Create\\add_action() in wp-content/plugins/casa-reference/lib/create.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function Casa\\Reference\\Output\\add_filter() in wp-content/plugins/casa-reference/lib/output.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function Casa\\Reference\\Associate\\add_action() in wp-content/plugins/casa-reference/lib/associate.php:24
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: publications, ucl, references
casa-reference/loader.php 92% from 13 tests
"CASA Reference" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("casa-reference.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin635 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 85 | 55 | 508 |
JavaScript | 2 | 8 | 1 | 79 |
CSS | 2 | 1 | 1 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
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 | 33 | |
▷ Named functions | 33 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |