Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/custom-wishlist/includes/class_wishlist.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; CWL_Wishlist has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼186.92ms] Passed 4 tests
Analyzing server-side resources used by Custom Wishlist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.05 | 4.85 ▼28.53 |
Dashboard /wp-admin | 1.81 ▼1.25 | 5.67 ▼41.03 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 6.57 ▼40.39 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.63 | 5.28 ▼637.72 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 5.54 ▼28.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, no new options
New tables |
---|
wp_cwl_wishlists |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Wishlist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲220 | 16.26 ▲0.80 | 13.01 ▲3.79 | 46.94 ▲1.32 |
Dashboard /wp-admin | 2,970 ▲36 | 6.00 ▲0.03 | 143.59 ▼11.23 | 108.71 ▼2.83 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 70.46 ▼3.70 | 83.31 ▼7.85 |
Add New Post /wp-admin/post-new.php | 1,504 ▼179 | 18.61 ▼0.17 | 377.87 ▼23.28 | 101.79 ▼12.92 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.05 ▲0.03 | 167.47 ▲16.67 | 110.59 ▼6.59 |
Uninstaller [IO: ▲0.00MB] [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 attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/custom-wishlist/includes/class_wishlist.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; CWL_Wishlist has a deprecated constructor
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cwl_wishlists
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/custom-wishlist/custom-wishlist.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-wishlist/custom-wishlist.php:43
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
3 plugin tags: free, wishlist, custom post type
custom-wishlist/custom-wishlist.php Passed 13 tests
"Custom Wishlist" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Create wishlists with custom post types
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin345 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 90 | 23 | 167 |
CSS | 1 | 11 | 0 | 79 |
PO File | 2 | 22 | 26 | 70 |
JavaScript | 1 | 2 | 0 | 29 |
PHP code Passed 2 tests
An overview 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.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected