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.01MB] [CPU: ▼6.77ms] Passed 4 tests
Server-side resources used by PostTypeArchiveMeta
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.58 ▼1.46 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.42 ▼1.17 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.72 ▼5.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.28 ▼18.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.07 ▲0.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PostTypeArchiveMeta
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.69 ▼0.89 | 4.92 ▲3.15 | 42.99 ▼3.49 |
Dashboard /wp-admin | 2,203 ▲12 | 5.88 ▲0.05 | 101.76 ▼5.71 | 42.45 ▲1.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.02 | 35.50 ▼3.74 | 34.18 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.54 ▼5.83 | 632.31 ▼52.84 | 48.88 ▼9.96 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.02 | 99.49 ▼11.08 | 42.26 ▼4.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: post types archive
posttypearchivemeta/post_type_archive_meta.php 85% from 13 tests
"PostTypeArchiveMeta" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("posttypearchivemeta.php" instead of "post_type_archive_meta.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin375 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 71 | 12 | 297 |
JavaScript | 1 | 7 | 0 | 39 |
PO File | 1 | 13 | 2 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 11 | 44.00% |
▷ Protected methods | 14 | 56.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 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
There were not PNG files found in your plugin