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: ▼2.28MB] [CPU: ▼524,961.36ms] Passed 4 tests
A check of server-side resources used by Custom Post Type Date Archives
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.48 | 46.50 ▲4.75 |
Dashboard /wp-admin | 3.81 ▼10.41 | 54.75 ▼2,099,834.89 |
Posts /wp-admin/edit.php | 3.87 ▲0.47 | 53.92 ▲2.64 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.43 | 92.25 ▼17.94 |
Media Library /wp-admin/upload.php | 3.67 ▲0.40 | 44.16 ▲5.77 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Type Date Archives
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.12 | 1.56 ▼0.17 | 37.39 ▼3.58 |
Dashboard /wp-admin | 2,192 ▲12 | 5.51 ▼0.16 | 85.08 ▼6.24 | 41.40 ▼0.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.05 | 36.58 ▼2.80 | 36.60 ▲2.65 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,673 | 26.30 ▲3.13 | 949.17 ▲261.23 | 56.91 ▼3.02 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▼0.06 | 102.16 ▲1.28 | 45.25 ▲0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-post-type-date-archives/includes/partials/admin-info.php:3
- > PHP Notice
Undefined variable: recent_posts in wp-content/plugins/custom-post-type-date-archives/includes/partials/latest-posts-block-display.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-date-archives/includes/widgets/class-cptda-widget-calendar.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-date-archives/includes/widgets/class-cptda-widget-recent-posts.php:19
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/custom-post-type-date-archives/includes/partials/recent-posts-display.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-post-type-date-archives/includes/partials/admin-error.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-date-archives/includes/partials/calendar-widget.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-date-archives/includes/partials/recent-posts-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-post-type-date-archives/includes/partials/admin-help.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-post-type-date-archives/includes/partials/archive-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: post type, archives, date, events, calendar
custom-post-type-date-archives/custom-post-type-date-archives.php 77% from 13 tests
The main PHP script in "Custom Post Type Date Archives" version 2.7.1 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,586 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 661 | 1,734 | 2,567 |
CSS | 1 | 4 | 0 | 15 |
JavaScript | 1 | 0 | 3 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 88 | |
▷ Static methods | 1 | 1.14% |
▷ Public methods | 65 | 73.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 26.14% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin