Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▲0.07ms] Passed 4 tests
This is a short check of server-side resources used by Parallax Scroll by adamrob.co.uk
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 52.19 ▲11.17 |
Dashboard /wp-admin | 3.65 ▲0.35 | 49.85 ▼10.22 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 55.96 ▲8.96 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 85.37 ▼3.21 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 38.40 ▲4.77 |
Add New /wp-admin/post-new.php?post_type=parallax_scroll | 3.70 | 53.53 |
Parallax Scroll /wp-admin/edit.php?post_type=parallax_scroll | 3.63 | 39.87 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
adamrob-parallax-scroll-op-version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Parallax Scroll by adamrob.co.uk
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲131 | 13.22 ▼1.15 | 2.06 ▲0.06 | 48.28 ▲4.01 |
Dashboard /wp-admin | 2,227 ▲39 | 5.88 ▲0.96 | 96.90 ▼7.81 | 37.26 ▼11.62 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.98 ▼0.13 | 37.15 ▲2.28 | 38.41 ▲4.31 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 23.24 ▲4.91 | 657.67 ▲37.96 | 53.85 ▼0.29 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.24 ▲0.05 | 97.60 ▲0.94 | 44.23 ▼1.42 |
Add New /wp-admin/post-new.php?post_type=parallax_scroll | 2,752 | 7.58 | 179.72 | 70.19 |
Parallax Scroll /wp-admin/edit.php?post_type=parallax_scroll | 1,466 | 1.97 | 30.69 | 31.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- adamrob-parallax-scroll-op-version
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/adamrob-parallax-scroll/admin/partials/help/adamrob-parallax-scroll-help-posttype-fullwidth.php
- > /wp-content/plugins/adamrob-parallax-scroll/admin/partials/help/adamrob-parallax-scroll-help-posttype-title.php
- > /wp-content/plugins/adamrob-parallax-scroll/admin/partials/help/adamrob-parallax-scroll-help-posttype-create.php
- > /wp-content/plugins/adamrob-parallax-scroll/admin/partials/help/adamrob-parallax-scroll-help-posttype-options.php
- > /wp-content/plugins/adamrob-parallax-scroll/admin/partials/help/adamrob-parallax-scroll-help-posttype-style.php
- > /wp-content/plugins/adamrob-parallax-scroll/admin/partials/help/adamrob-parallax-scroll-help-posttype-new.php
- > /wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 29
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 50
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 34
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 45
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 50
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 38
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 19
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/adamrob-parallax-scroll/admin/partials/adamrob-parallax-scroll-meta-tab-1.php:18
- > PHP Notice
Undefined variable: parameters in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 50
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/adamrob-parallax-scroll/public/partials/adamrob-parallax-scroll-public-parallax-js-legacy.php on line 29
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== adamrob-parallax-scroll ===
)
adamrob-parallax-scroll/adamrob-parallax-scroll.php 92% from 13 tests
The main file in "Parallax Scroll by adamrob.co.uk" v. 3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,319 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 700 | 1,995 | 1,670 |
JavaScript | 6 | 113 | 91 | 376 |
Markdown | 1 | 40 | 0 | 170 |
CSS | 3 | 23 | 37 | 103 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 2 | 1.83% |
▷ Public methods | 55 | 50.46% |
▷ Protected methods | 15 | 13.76% |
▷ Private methods | 39 | 35.78% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin