Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.06ms] Passed 4 tests
This is a short check of server-side resources used by Custom WP Framework
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.32 ▼5.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.70 ▲2.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.48 ▼1.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.50 ▼16.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.89 ▼1.03 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom WP Framework: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.29 ▼1.29 | 1.68 ▼0.47 | 43.26 ▲0.76 |
Dashboard /wp-admin | 2,209 ▲24 | 5.91 ▲0.91 | 97.80 ▼20.59 | 38.85 ▼6.67 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.04 | 39.06 ▼4.03 | 35.72 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 22.86 ▲4.84 | 626.47 ▲8.06 | 50.32 ▼2.45 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.02 | 98.85 ▼0.51 | 41.36 ▼1.61 |
Uninstaller [IO: ▲0.50MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attentionThis plugin does not fully uninstall, leaving 6 options in the database
- The plugin did not uninstall correctly, leaving 48 files (0.50MB) in the plugin directory
- (new file) admin/assets/css/cwf-admin-cpt.css
- (new file) admin/index.php
- (new file) admin/controllers/class-cwf-cpt-controller.php
- (new file) admin/assets/js/cwf-admin-media-uploader.js
- (new file) admin/class-cwf-admin.php
- (new file) admin/models/custom-post-types/class-cwf-add-cpt-viewmodel.php
- (new file) admin/assets/js/cwf-admin-cpt.js
- (new file) admin/assets/js/cwf-postbox.js
- (new file) admin/assets/js/cwf-admin-tag-input.js
- (new file) admin/controllers/index.php
- ...
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: posts, custom
custom-wp-framework/custom-wp-framework.php 92% from 13 tests
The primary PHP file in "Custom WP Framework" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- 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 97% from 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 plugin5,718 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,265 | 3,976 | 4,573 |
JavaScript | 4 | 111 | 63 | 662 |
JSON | 1 | 0 | 0 | 270 |
CSS | 1 | 39 | 1 | 213 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 143)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 27.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 6.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 143.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 9 | 8.74% |
▷ Public methods | 96 | 93.20% |
▷ Protected methods | 1 | 0.97% |
▷ Private methods | 6 | 5.83% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ 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
No PNG files were detected