Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼3.51ms] Passed 4 tests
An overview of server-side resources used by cbParallax
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 45.67 ▲4.26 |
Dashboard /wp-admin | 3.85 ▲0.55 | 54.18 ▲5.38 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 49.09 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 87.62 ▼21.35 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 37.92 ▲3.66 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for cbParallax
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲184 | 14.36 ▼0.17 | 1.79 ▲0.07 | 44.14 ▲6.58 |
Dashboard /wp-admin | 2,339 ▲162 | 5.60 ▼0.02 | 80.99 ▼5.06 | 76.90 ▲35.16 |
Posts /wp-admin/edit.php | 2,259 ▲162 | 1.98 ▼0.02 | 34.87 ▼0.45 | 32.42 ▼1.09 |
Add New Post /wp-admin/post-new.php | 7,205 ▲5,679 | 26.58 ▲3.65 | 937.52 ▲259.78 | 45.86 ▼6.76 |
Media Library /wp-admin/upload.php | 1,550 ▲153 | 4.23 ▼0.01 | 96.56 ▼4.87 | 78.75 ▲33.67 |
cbParallax /wp-admin/cb-parallax.php | 26 | 0.42 | 0.09 | 14.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'CBPARALLAX_ROOT_DIRadmin/partials/class-settings-display.php' (include_path='.:/usr/share/php') in wp-content/plugins/cb-parallax/admin/includes/class-meta-box.php on line 9
- > PHP Warning
Use of undefined constant CBPARALLAX_ROOT_DIR - assumed 'CBPARALLAX_ROOT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cb-parallax/admin/includes/class-meta-box.php on line 9
- > PHP Warning
require_once(CBPARALLAX_ROOT_DIRadmin/partials/class-settings-display.php): failed to open stream: No such file or directory in wp-content/plugins/cb-parallax/admin/includes/class-meta-box.php on line 9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/cb-parallax.php
- > Network (severe)
wp-admin/cb-parallax.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version not formatted correctly
- Contributors: Plugin contributors field is missing
cb-parallax/cb-parallax.php 92% from 13 tests
The main file in "cbParallax" v. 0.9.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 483 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected8,212 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 939 | 102 | 3,565 |
PHP | 22 | 707 | 1,713 | 2,186 |
JavaScript | 9 | 188 | 183 | 1,374 |
Markdown | 6 | 162 | 0 | 654 |
PO File | 1 | 189 | 397 | 300 |
XML | 7 | 0 | 0 | 132 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 7 | 5.34% |
▷ Public methods | 92 | 70.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 39 | 29.77% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
44 PNG files occupy 0.61MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/jquery-ui/themes/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
public/images/overlays/01.png | 0.21KB | 0.10KB | ▼ 52.61% |
vendor/jquery-ui/themes/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
admin/images/contextual-help/tab-2/horizontal-to-the-right-de.png | 9.80KB | 5.15KB | ▼ 47.48% |
public/images/overlays/pixel-weave.png | 0.24KB | 0.26KB | 0.00% |