Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.12MB] [CPU: ▼5.18ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Header Builder Plugin – Pearl
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 37.58 ▼1.69 |
Dashboard /wp-admin | 4.74 ▲1.43 | 46.60 ▼7.04 |
Posts /wp-admin/edit.php | 4.85 ▲1.49 | 51.25 ▲2.38 |
Add New Post /wp-admin/post-new.php | 7.34 ▲1.45 | 83.11 ▼14.37 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 39.91 ▲6.61 |
Server storage [IO: ▲4.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 142 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Header Builder Plugin – Pearl
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲157 | 13.66 ▼0.54 | 7.18 ▲5.35 | 39.44 ▼4.09 |
Dashboard /wp-admin | 2,220 ▲40 | 5.90 ▲0.91 | 108.74 ▼11.71 | 38.88 ▼8.68 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.06 ▲0.04 | 35.03 ▼2.18 | 37.23 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.41 ▲0.05 | 676.71 ▲58.83 | 53.03 ▲3.07 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.25 ▲0.05 | 96.26 ▼7.71 | 40.80 ▼5.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pearl-header-builder/hb_templates/main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pearl-header-builder/frontend/includes.php:2
- > 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 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #5 in pearl-header-builder/assets to your readme.txt
pearl-header-builder/pearl_header_builder.php 92% from 13 tests
The main PHP script in "WordPress Header Builder Plugin – Pearl" version 1.3.6 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pearl-header-builder.php" instead of "pearl_header_builder.php")
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
There were no executable files found in this plugin53,551 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 8,911 | 550 | 39,125 |
PHP | 38 | 529 | 236 | 7,963 |
SVG | 2 | 0 | 0 | 2,693 |
CSS | 10 | 2 | 18 | 2,364 |
HTML | 41 | 204 | 43 | 1,393 |
JSON | 13 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 7.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 69 | |
▷ Named functions | 68 | 98.55% |
▷ Anonymous functions | 1 | 1.45% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin