Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼301.98ms] Passed 4 tests
An overview of server-side resources used by CPO Content Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.42 | 52.91 ▲3.27 |
Dashboard /wp-admin | 3.76 ▲0.35 | 35.09 ▲2.72 |
Posts /wp-admin/edit.php | 4.01 ▲0.37 | 42.31 ▲4.21 |
Add New Post /wp-admin/post-new.php | 7.23 ▲0.26 | 101.76 ▼1,212.50 |
Media Library /wp-admin/upload.php | 3.64 ▲0.34 | 25.86 ▼1.40 |
CPO Content Types /wp-admin/options-general.php?page=ctct_settings | 3.61 | 25.42 |
Server storage [IO: ▲0.15MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for CPO Content Types
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,770 ▲16 | 15.91 ▼0.07 | 5.42 ▼1.01 | 2.28 ▼0.11 |
Dashboard /wp-admin | 2,899 ▲38 | 6.15 ▼0.07 | 120.62 ▼16.22 | 156.03 ▼7.40 |
Posts /wp-admin/edit.php | 2,692 ▲1 | 3.23 ▲0.00 | 65.27 ▲0.45 | 145.92 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,666 ▲5 | 15.66 ▼0.33 | 415.85 ▲14.16 | 158.39 ▼0.23 |
Media Library /wp-admin/upload.php | 1,705 ▲10 | 5.52 ▼0.02 | 145.63 ▼7.74 | 185.98 ▼13.38 |
CPO Content Types /wp-admin/options-general.php?page=ctct_settings | 1,148 | 2.37 | 55.66 | 126.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/includes/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_services.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_team.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_testimonials.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_features.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_products.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_portfolio.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_clients.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cposts/cpost_slides.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpo-content-types/cpo-content-types.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: team, features, team members, portfolio, services...
cpo-content-types/cpo-content-types.php Passed 13 tests
The main PHP file in "CPO Content Types" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Adds support for a number of content types in your Wordpress installation.
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
No dangerous file extensions were detected1,200 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 115 | 92 | 796 |
PO File | 1 | 665 | 1,455 | 400 |
CSS | 1 | 0 | 0 | 4 |
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.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected