Benchmarks
Plugin footprint 57% 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
- Install procedure had errors
- > Notice in wp-content/plugins/quant/src/Client.php+26
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.48MB] [CPU: ▲2.55ms] 75% from 4 tests
A check of server-side resources used by QuantCDN
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 557.52ms on /wp-admin/options-general.php?page=quant)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 44.42 ▲1.44 |
Dashboard /wp-admin | 3.79 ▲0.48 | 51.46 ▲4.63 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 46.67 ▲6.13 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 95.23 ▲1.16 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 38.58 ▲2.98 |
QuantCDN /wp-admin/options-general.php?page=quant | 3.69 | 557.52 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
wp_quant_seed |
wp_quant_settings |
db_upgraded |
quant_internal_token |
can_compress_scripts |
theysaidso_admin_options |
wp_quant_cron_settings |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QuantCDN
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲23 | 14.41 ▲0.03 | 1.78 ▼0.30 | 42.71 ▼1.60 |
Dashboard /wp-admin | 2,212 ▲47 | 5.54 ▼0.15 | 93.61 ▼7.77 | 36.94 ▼8.26 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.94 ▼0.08 | 36.77 ▼3.94 | 32.95 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 25.05 ▲1.88 | 626.02 ▼50.47 | 75.40 ▲16.44 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▼0.06 | 101.05 ▼19.24 | 44.22 ▼2.85 |
QuantCDN /wp-admin/options-general.php?page=quant | 878 | 2.16 | 22.79 | 28.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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 0% 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
The following issues need your attention
- 22× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/quant/src/seed/MediaAssetsBatch.php
- > /wp-content/plugins/quant/wp-batch-processing/includes/class-batch-ajax-handler.php
- > /wp-content/plugins/quant/src/seed/PostBatch.php
- > /wp-content/plugins/quant/wp-batch-processing/examples/class-example-batch.php
- > /wp-content/plugins/quant/wp-batch-processing/includes/class-bp-singleton.php
- > /wp-content/plugins/quant/src/seed/PageBatch.php
- > /wp-content/plugins/quant/src/seed/CustomCronRoutesBatch.php
- > /wp-content/plugins/quant/src/seed/CategoryBatch.php
- > /wp-content/plugins/quant/wp-batch-processing/includes/class-batch.php
- > /wp-content/plugins/quant/src/seed/TagBatch.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/quant/templates/quant-validate.php:8
- > PHP Fatal error
Uncaught Error: Class 'Quant_WP_Batch_Processor' not found in wp-content/plugins/quant/wp-batch-processing/views/batch-manage.php:23
- > PHP Notice
Undefined variable: id in wp-content/plugins/quant/wp-batch-processing/views/batch-manage.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quant/wp-batch-processing/views/batch-list.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/quant/quant-cli.php:248
- > PHP Fatal error
Uncaught Error: Call to undefined function Quant\\plugin_dir_path() in wp-content/plugins/quant/src/App.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/quant/src/functions.php:13
- > PHP Fatal error
Uncaught Error: Class 'Quant_WP_BP_Helper' not found in wp-content/plugins/quant/wp-batch-processing/views/batch-view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Quant\\get_option() in wp-content/plugins/quant/src/Client.php:23
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/quant/src/functions.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: cdn, jamstack, quant, static site generator, static
quant/quant.php Passed 13 tests
The main PHP script in "QuantCDN" version 1.5.1 is automatically included on every request by WordPress
32 characters long description:
QuantCDN static edge integration
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,595 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 754 | 1,392 | 2,390 |
Markdown | 1 | 39 | 0 | 121 |
JavaScript | 1 | 11 | 0 | 84 |
PHP code Passed 2 tests
A short review 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.29 |
Average class complexity | 7.89 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 1 | 3.85% |
Methods | 128 | |
▷ Static methods | 15 | 11.72% |
▷ Public methods | 113 | 88.28% |
▷ Protected methods | 9 | 7.03% |
▷ Private methods | 6 | 4.69% |
Functions | 26 | |
▷ Named functions | 25 | 96.15% |
▷ Anonymous functions | 1 | 3.85% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin