Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.88ms] Passed 4 tests
Analyzing server-side resources used by MAS Static Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.15 ▼0.47 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.14 ▼13.28 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.93 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.26 ▼22.44 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.16 ▲2.38 |
All Static Contents /wp-admin/edit.php?post_type=mas_static_content | 3.37 | 36.60 |
Categories /wp-admin/edit-tags.php?taxonomy=mas_static_content_cat&post_type=mas_static_content | 3.31 | 32.51 |
Add New /wp-admin/post-new.php?post_type=mas_static_content | 6.05 | 76.78 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
mas_static_content_queue_flush_rewrite_rules |
current_theme_supports_mas_static_content |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by MAS Static Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.45 ▲0.24 | 1.81 ▲0.22 | 44.72 ▲6.33 |
Dashboard /wp-admin | 2,234 ▲46 | 5.86 ▲0.05 | 103.42 ▼4.02 | 39.39 ▼2.89 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.03 | 40.20 ▲3.11 | 34.39 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,568 ▲54 | 18.25 ▲0.71 | 603.50 ▼9.41 | 58.20 ▲8.98 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.20 ▼0.12 | 95.20 ▼13.19 | 42.44 ▼2.66 |
All Static Contents /wp-admin/edit.php?post_type=mas_static_content | 1,100 | 1.95 | 30.76 | 31.99 |
Categories /wp-admin/edit-tags.php?taxonomy=mas_static_content_cat&post_type=mas_static_content | 1,262 | 2.14 | 25.68 | 25.08 |
Add New /wp-admin/post-new.php?post_type=mas_static_content | 1,511 | 16.90 | 847.34 | 30.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- current_theme_supports_mas_static_content
- theysaidso_admin_options
- mas_static_content_queue_flush_rewrite_rules
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
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
There were no browser issues found
Optimizations
Plugin configuration Passed 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
8 plugin tags: content types, post type, custom post types, types, custom...
mas-static-content/mas-static-content.php Passed 13 tests
The main PHP file in "MAS Static Content" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
This plugin helps to create a custom post type static content and use it with shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected268 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 62 | 169 | 268 |
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.28 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 22 | |
▷ Static methods | 11 | 50.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
No PNG images were found in this plugin