Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/acf-post-types-tmc/tmc-acf-post-types-fields.php+29
require(wp-content/plugins/acf-post-types-tmc/lib/ShellPress/src/Shared/Utility/RequirementChecker.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.50ms] Passed 4 tests
A check of server-side resources used by ACF Post Types TMC
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.62 ▲7.36 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.04 ▲1.44 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.09 ▼5.71 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 90.79 ▼1,196.75 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 22.35 ▼0.97 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ACF Post Types TMC
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.31 ▼0.34 | 5.95 ▼0.26 | 2.14 ▼0.46 |
Dashboard /wp-admin | 2,892 ▲31 | 6.04 ▼0.03 | 117.06 ▼15.67 | 154.63 ▼6.81 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▼0.00 | 64.81 ▼0.80 | 136.78 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 15.89 ▼0.28 | 401.82 ▼40.82 | 155.61 ▲4.50 |
Media Library /wp-admin/upload.php | 1,701 ▲9 | 5.53 ▼0.00 | 144.63 ▲8.97 | 183.39 ▼1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 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 50% from 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 following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'shellpress\\v1_2_9_1\\ShellPress' not found in wp-content/plugins/acf-post-types-tmc/src/App.php:14
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/acf-post-types-tmc/lib/ShellPress/src/Shared/Utility/RequirementChecker.php' (include_path='.:/usr/share/php') in wp-content/plugins/acf-post-types-tmc/tmc-acf-post-types-fields.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-post-types-tmc/src/Fields/PostTypesFieldV5.php:13
- > PHP Fatal error
Uncaught Error: Class 'shellpress\\v1_2_9_1\\src\\Shared\\Components\\IComponent' not found in wp-content/plugins/acf-post-types-tmc/src/Components/Utility.php:13
- > PHP Warning
require(wp-content/plugins/acf-post-types-tmc/lib/ShellPress/src/Shared/Utility/RequirementChecker.php): failed to open stream: No such file or directory in wp-content/plugins/acf-post-types-tmc/tmc-acf-post-types-fields.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: radio box, select post type, acf, advanced custom field, add-on
acf-post-types-tmc/tmc-acf-post-types-fields.php 77% from 13 tests
Analyzing the main PHP file in "ACF Post Types TMC" version 1.0.2
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-post-types-tmc.php" instead of "tmc-acf-post-types-fields.php")
- Domain Path: The domain path points to a folder that does not exist ("/langugages")
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 detected133 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 86 | 139 | 115 |
JavaScript | 1 | 19 | 12 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 2 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin