Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.73ms] Passed 4 tests
An overview of server-side resources used by WP Post Has Archive
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.40 ▲2.71 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.04 ▲3.55 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.55 ▼5.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.88 ▼19.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.67 ▲3.25 |
Post has archive /wp-admin/options-general.php?page=post-has-archive | 3.30 | 35.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
post-has-archive |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Post Has Archive
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.02 | 1.70 ▲0.13 | 43.64 ▲2.34 |
Dashboard /wp-admin | 2,196 ▲18 | 5.53 ▼0.13 | 81.08 ▼44.43 | 41.00 ▼3.36 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.05 | 33.74 ▼7.74 | 33.30 ▼7.14 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.09 ▼0.45 | 694.05 ▲45.92 | 53.90 ▲0.47 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.10 | 94.30 ▼6.42 | 44.30 ▲1.75 |
Post has archive /wp-admin/options-general.php?page=post-has-archive | 807 | 2.03 | 24.55 | 26.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=post-has-archive
- > Notice in wp-content/plugins/wp-post-has-archive/views/admin/setting.php+8
Undefined variable: result
SRP 50% from 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Post_Has_Archive\\Controller' not found in wp-content/plugins/wp-post-has-archive/controllers/admin/setting.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Post_Has_Archive\\Util' not found in wp-content/plugins/wp-post-has-archive/classes/functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_Post_Has_Archive\\is_wp_error() in wp-content/plugins/wp-post-has-archive/views/admin/setting.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_Post_Has_Archive\\plugin_dir_path() in wp-content/plugins/wp-post-has-archive/wp-post-has-archive.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Requires at least: Version not formatted correctly
wp-post-has-archive/wp-post-has-archive.php 92% from 13 tests
The principal PHP file in "WP Post Has Archive" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected349 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 51 | 136 | 349 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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 | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 17 | 54.84% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 3 | 9.68% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin