Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-ng/includes/class-wp-ng-helper.php+297
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲5.94MB] [CPU: ▲43.74ms] 75% from 4 tests
Server-side resources used by Angular for WordPress
Please take the time to fix the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.94MB on /wp-admin/options-general.php?page=settings_wp-ng)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.89 ▲6.43 | 98.70 ▲54.00 |
Dashboard /wp-admin | 9.97 ▲6.63 | 106.91 ▲44.19 |
Posts /wp-admin/edit.php | 9.97 ▲6.62 | 99.51 ▲43.17 |
Add New Post /wp-admin/post-new.php | 9.97 ▲4.09 | 159.11 ▲40.25 |
Media Library /wp-admin/upload.php | 9.97 ▲6.74 | 84.05 ▲47.34 |
WP NG Angular /wp-admin/options-general.php?page=settings_wp-ng | 9.98 | 76.04 |
Server storage [IO: ▲14.86MB] [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: 1,072 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
wp-ng_log_file |
widget_recent-posts |
wp-ng_version |
widget_recent-comments |
wp-ng_log_rollbar |
wp-ng_advanced |
wp-ng_scripts |
theysaidso_admin_options |
wp-ng_general |
... |
Browser metrics 75% from 4 tests
An overview of browser requirements for Angular for WordPress
It is time to focus on the following
- Nodes: Limit the number of DOM nodes under 25,000 (currently 44,520 on /wp-admin/options-general.php?page=settings_wp-ng)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,339 ▲593 | 16.58 ▲2.23 | 45.91 ▲44.29 | 41.25 ▼1.36 |
Dashboard /wp-admin | 2,358 ▲177 | 6.36 ▲0.58 | 117.10 ▲14.64 | 37.52 ▼6.63 |
Posts /wp-admin/edit.php | 2,285 ▲182 | 3.54 ▲1.40 | 56.62 ▲17.39 | 37.37 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.08 ▲0.01 | 641.99 ▼7.68 | 34.16 ▼18.36 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.42 ▲0.21 | 84.58 ▼22.52 | 45.02 ▼2.53 |
WP NG Angular /wp-admin/options-general.php?page=settings_wp-ng | 44,520 | 7.77 | 693.58 | 66.13 |
Uninstaller [IO: ▲0.02MB] [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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 25160 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=settings_wp-ng
- > Notice in wp-content/plugins/wp-ng/includes/class-wp-ng-settings.php+1523
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following
- 96× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-ng/lib/Monolog/Handler/MailHandler.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wp-ng/lib/Monolog/Formatter/JsonFormatter.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/wp-ng/lib/Monolog/Formatter/LogglyFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-ng/lib/Monolog/Handler/FirePHPHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/wp-ng/lib/Monolog/Handler/WhatFailureGroupHandler.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ng/includes/wp-ng-settings-descriptor.php:465
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wp-ng/lib/Monolog/Formatter/ElasticaFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wp-ng/lib/Monolog/Formatter/HtmlFormatter.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-ng/admin/partials/gallery-view.php:3
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-ng/lib/Monolog/Handler/TestHandler.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 24 tag instead of maximum 10
wp-ng/wp-ng.php Passed 13 tests
The principal PHP file in "Angular for WordPress" v. 1.7.8 is loaded by WordPress automatically on each request
129 characters long description:
WP NG is a Angular bootstrapper for wordpress. The plugin do automatic bootstrap your app and add module dependencie in your app.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected83,927 lines of code in 658 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 6,556 | 11,373 | 25,421 |
JSON | 11 | 0 | 0 | 24,202 |
JavaScript | 244 | 1,165 | 610 | 23,323 |
Sass | 42 | 648 | 160 | 4,303 |
SVG | 13 | 25 | 1 | 3,055 |
CSS | 82 | 538 | 79 | 1,907 |
Markdown | 3 | 238 | 0 | 969 |
PO File | 1 | 286 | 469 | 740 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 13 | |
Traits | 2 | |
Classes | 183 | |
▷ Abstract classes | 8 | 4.37% |
▷ Concrete classes | 175 | 95.63% |
▷ Final classes | 3 | 1.71% |
Methods | 1,552 | |
▷ Static methods | 230 | 14.82% |
▷ Public methods | 1,162 | 74.87% |
▷ Protected methods | 224 | 14.43% |
▷ Private methods | 166 | 10.70% |
Functions | 161 | |
▷ Named functions | 104 | 64.60% |
▷ Anonymous functions | 57 | 35.40% |
Constants | 108 | |
▷ Global constants | 17 | 15.74% |
▷ Class constants | 91 | 84.26% |
▷ Public constants | 91 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
180 PNG files occupy 0.41MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/vendor/galleria/themes/fullscreen/p-neg.png | 0.96KB | 0.12KB | ▼ 87.76% |
public/assets/vendor/galleria/themes/fullscreen/i.png | 0.17KB | 0.14KB | ▼ 20.11% |
public/dist/vendor/unitegallery/skins/alexis/images/slider_arrow_left.png | 1.78KB | 0.89KB | ▼ 50.25% |
public/assets/images/icon-256x256.png | 35.40KB | 15.01KB | ▼ 57.60% |
public/dist/vendor/unitegallery/skins/default/button_playpause.png | 0.59KB | 0.62KB | 0.00% |