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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.97ms] Passed 4 tests
Server-side resources used by Post Type Spotlight
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.26 ▲0.80 |
Dashboard /wp-admin | 3.46 ▲0.16 | 49.59 ▼1.79 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.90 ▲4.29 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.09 ▼14.62 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.15 ▲3.73 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_pts_featured_posts_widget |
pts_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Type Spotlight
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,215 ▲480 | 28.37 ▲13.99 | 36.33 ▲34.50 | 39.78 ▲2.47 |
Dashboard /wp-admin | 2,357 ▲172 | 13.81 ▲8.94 | 194.66 ▲88.13 | 43.52 ▼0.17 |
Posts /wp-admin/edit.php | 2,297 ▲208 | 12.63 ▲10.62 | 111.60 ▲70.85 | 35.29 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 18.11 ▲0.58 | 508.32 ▼104.69 | 37.09 ▼11.82 |
Media Library /wp-admin/upload.php | 1,528 ▲143 | 14.06 ▲9.88 | 154.30 ▲52.84 | 47.00 ▲3.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- pts_version
- can_compress_scripts
- widget_pts_featured_posts_widget
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: posts, sticky, custom post types, featured, post type
post-type-spotlight/post-type-spotlight.php 77% from 13 tests
The main file in "Post Type Spotlight" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("5.1.0" instead of "5.1")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: The description should be shorter than 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,074 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 341 | 645 | 1,283 |
JavaScript | 3 | 169 | 170 | 549 |
JSON | 1 | 0 | 0 | 154 |
Markdown | 3 | 38 | 0 | 88 |
CSS | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 25.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 19 | 25.68% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.05% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin