Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▲1.04ms] Passed 4 tests
An overview of server-side resources used by WDV - Add Services and Events
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 48.15 ▲3.85 |
Dashboard /wp-admin | 3.42 ▲0.12 | 51.08 ▼5.04 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 51.09 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 100.25 ▲6.46 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 39.10 ▲4.18 |
Restaurants /wp-admin/edit.php?post_type=restaurant | 3.39 | 37.01 |
Abouts /wp-admin/edit.php?post_type=about | 3.39 | 37.40 |
Events /wp-admin/edit.php?post_type=event | 3.39 | 35.68 |
Advertisements /wp-admin/edit.php?post_type=advertisement | 3.39 | 37.24 |
Add New /wp-admin/post-new.php?post_type=advertisement | 6.37 | 82.66 |
Add New /wp-admin/post-new.php?post_type=event | 6.37 | 85.13 |
Add New /wp-admin/post-new.php?post_type=restaurant | 6.37 | 91.93 |
Services /wp-admin/edit.php?post_type=services | 3.39 | 38.67 |
Add New /wp-admin/post-new.php?post_type=services | 6.37 | 83.83 |
Add New /wp-admin/post-new.php?post_type=testimonial | 6.37 | 83.77 |
Server storage [IO: ▲2.99MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WDV - Add Services and Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,058 ▲312 | 13.82 ▼0.53 | 8.57 ▲6.97 | 41.37 ▼2.50 |
Dashboard /wp-admin | 2,366 ▲186 | 5.64 ▼0.03 | 90.63 ▼0.77 | 41.90 ▼5.50 |
Posts /wp-admin/edit.php | 2,268 ▲168 | 2.02 ▲0.03 | 40.01 ▲2.27 | 34.51 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,678 ▲150 | 18.63 ▼4.51 | 611.23 ▼115.30 | 71.27 ▲7.29 |
Media Library /wp-admin/upload.php | 1,568 ▲171 | 4.22 ▲0.03 | 100.80 ▼0.90 | 44.81 ▼2.93 |
Restaurants /wp-admin/edit.php?post_type=restaurant | 1,246 | 1.96 | 34.64 | 30.98 |
Abouts /wp-admin/edit.php?post_type=about | 1,238 | 1.96 | 33.48 | 29.01 |
Events /wp-admin/edit.php?post_type=event | 1,241 | 1.96 | 30.76 | 31.78 |
Advertisements /wp-admin/edit.php?post_type=advertisement | 1,241 | 1.98 | 30.20 | 31.42 |
Add New /wp-admin/post-new.php?post_type=advertisement | 1,648 | 16.92 | 844.10 | 30.38 |
Add New /wp-admin/post-new.php?post_type=event | 6,315 | 22.89 | 796.22 | 29.45 |
Add New /wp-admin/post-new.php?post_type=restaurant | 1,648 | 16.92 | 781.26 | 32.64 |
Services /wp-admin/edit.php?post_type=services | 1,238 | 1.97 | 33.16 | 30.68 |
Add New /wp-admin/post-new.php?post_type=services | 1,641 | 16.92 | 755.96 | 27.50 |
Add New /wp-admin/post-new.php?post_type=testimonial | 6,315 | 22.76 | 808.37 | 29.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wdv-add-services-and-events/admin/partials/wdv-add-services-and-events-admin-display.php
- > /wp-content/plugins/wdv-add-services-and-events/public/partials/wdv-add-services-and-events-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: post types, custom post types
wdv-add-services-and-events/wdv-add-services-and-events.php Passed 13 tests
The main file in "WDV - Add Services and Events" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
The plugin "WDV - Add Services and Events" added custom post types "Services" and "Events" to WP theme "Aniro Hotel".
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin17,018 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,882 |
CSS | 15 | 3,512 | 64 | 7,777 |
PHP | 12 | 160 | 587 | 353 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 8 | 27.59% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected