Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.30ms] Passed 4 tests
Server-side resources used by Site Announcements
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.16 ▼10.13 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.22 ▼2.99 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.56 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 93.87 ▼1.44 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 34.81 ▲1.35 |
All Announcements /wp-admin/edit.php?post_type=cw-announcement | 3.38 | 36.71 |
Add New /wp-admin/post-new.php?post_type=cw-announcement | 3.55 | 48.92 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 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
An overview of browser requirements for Site Announcements
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 13.82 ▼0.55 | 1.80 ▼0.11 | 39.94 ▼2.86 |
Dashboard /wp-admin | 2,255 ▲64 | 5.10 ▲0.17 | 106.17 ▼0.24 | 41.51 ▼3.57 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.35 ▲0.31 | 35.85 ▼3.53 | 32.96 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.46 ▲0.18 | 595.64 ▼79.37 | 32.03 ▼28.73 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.57 ▲0.38 | 95.93 ▼1.47 | 39.74 ▼3.36 |
All Announcements /wp-admin/edit.php?post_type=cw-announcement | 1,143 | 2.27 | 37.80 | 28.72 |
Add New /wp-admin/post-new.php?post_type=cw-announcement | 2,772 | 8.27 | 202.28 | 68.81 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: news, users, messages, announcements
site-announcements/site-announcements.php 92% from 13 tests
The primary PHP file in "Site Announcements" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected1,971 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 329 | 14 | 1,358 |
PHP | 11 | 157 | 473 | 376 |
JavaScript | 3 | 50 | 18 | 225 |
Markdown | 1 | 10 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ 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 | 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
No PNG images were found in this plugin