Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼290.22ms] Passed 4 tests
Server-side resources used by Page Optimize
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.43 | 59.18 ▼0.49 |
Dashboard /wp-admin | 3.63 ▲0.22 | 35.50 ▲1.19 |
Posts /wp-admin/edit.php | 3.68 ▲0.05 | 51.11 ▲10.37 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 101.25 ▼1,160.79 |
Media Library /wp-admin/upload.php | 3.63 ▲0.34 | 26.33 ▼0.77 |
Performance /wp-admin/options-general.php?page=page-optimize | 3.61 | 27.63 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page Optimize
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,779 ▲35 | 10.44 ▼5.15 | 5.59 ▼0.67 | 56.06 ▲53.85 |
Dashboard /wp-admin | 2,854 ▼1 | 6.11 ▼0.05 | 117.04 ▼22.33 | 57.09 ▼184.59 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.25 ▲0.01 | 91.06 ▲24.43 | 42.50 ▼97.94 |
Add New Post /wp-admin/post-new.php | 1,708 ▲47 | 18.03 ▲1.61 | 390.78 ▼50.43 | 79.04 ▼127.51 |
Media Library /wp-admin/upload.php | 1,685 ▼13 | 5.52 ▲0.08 | 148.26 ▲6.31 | 78.04 ▼119.78 |
Performance /wp-admin/options-general.php?page=page-optimize | 1,117 | 2.63 | 51.80 | 43.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/page-optimize/tests/bootstrap.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-optimize/settings.php:105
- > PHP Fatal error
Uncaught Error: Class 'WP_Styles' not found in wp-content/plugins/page-optimize/concat-css.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-optimize/page-optimize.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/page-optimize/tests/test_URL_to_file_mapping.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-optimize/page-optimize.php:63
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-optimize/page-optimize.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/page-optimize/concat-js.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=page-optimize
- > Network (severe)
_static/??-eJx1kcEOwiAQRH9Iio1E04PxWyisshGWBpb29yVNPLTJ3pi8GQZ29bYo6xOSdrVql1PKNHQ5dHnRB/jOJVWB7SeVgJpg8LaGOdviBR6xsmI7R5AqwCMLqMCKFTNJ0dSzVmAcIImdds5NKiW77h8+ZpFcbB7qbul6yUgMRbhjQ/8BltorMih04kLieCW5fG7M55GcX2cbB+UCuO/f9krP8W7MZKaHuf0AhynDfw== - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: performance
page-optimize/page-optimize.php Passed 13 tests
The main PHP script in "Page Optimize" version 0.5.2 is automatically included on every request by WordPress
68 characters long description:
Optimizes JS and CSS for faster page load and render in the browser.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,967 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 436 | 607 | 1,945 |
XML | 1 | 0 | 0 | 15 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 24.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 12 | 18.46% |
▷ Public methods | 40 | 61.54% |
▷ Protected methods | 1 | 1.54% |
▷ Private methods | 24 | 36.92% |
Functions | 45 | |
▷ Named functions | 39 | 86.67% |
▷ Anonymous functions | 6 | 13.33% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin