Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.76MB] [CPU: ▲4.24ms] Passed 4 tests
This is a short check of server-side resources used by Amber
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 46.39 ▲3.00 |
Dashboard /wp-admin | 4.07 ▲0.77 | 65.20 ▲13.56 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 55.88 ▲5.95 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.77 | 94.05 ▼3.85 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 45.15 ▲11.86 |
Amber Dashboard /wp-admin/tools.php?page=amber-dashboard | 3.98 | 42.99 |
Amber Settings /wp-admin/options-general.php?page=amber-setting-admin | 3.94 | 35.44 |
Server storage [IO: ▲11.53MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification found: 1 file (1.07KB) outside of "wp-content/plugins/amberlink/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 1,406 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_amber_check |
wp_amber_queue |
wp_amber_cache |
wp_amber_activity |
New WordPress options |
---|
can_compress_scripts |
amber_db_version |
amber_options |
amber_last_check_run |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Amber
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲102 | 13.24 ▼1.41 | 6.57 ▲4.84 | 41.80 ▼0.20 |
Dashboard /wp-admin | 2,237 ▲34 | 4.88 ▼0.03 | 100.44 ▼16.36 | 40.74 ▼4.74 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.05 | 35.84 ▼2.14 | 37.40 ▲3.31 |
Add New Post /wp-admin/post-new.php | 6,260 ▲4,719 | 25.69 ▲7.19 | 892.76 ▲214.07 | 54.50 ▼2.05 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.17 ▼0.07 | 99.62 ▼0.29 | 45.30 ▲3.36 |
Amber Dashboard /wp-admin/tools.php?page=amber-dashboard | 1,145 | 1.81 | 24.23 | 34.72 |
Amber Settings /wp-admin/options-general.php?page=amber-setting-admin | 2,309 | 1.79 | 27.71 | 33.67 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- amber_db_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- amber_options
- widget_recent-comments
- amber_last_check_run
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=amber-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=amber-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1192× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/amberlink/vendor/aws/Aws/S3/Exception/NotSignedUpException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Redshift\\Exception\\RedshiftException' not found in wp-content/plugins/amberlink/vendor/aws/Aws/Redshift/Exception/ClusterSubnetGroupAlreadyExistsException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\CloudSearch\\Exception\\CloudSearchException' not found in wp-content/plugins/amberlink/vendor/aws/Aws/CloudSearch/Exception/InvalidTypeException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/amberlink/vendor/aws/Monolog/Handler/MailHandler.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Common\\ToArrayInterface' not found in wp-content/plugins/amberlink/vendor/aws/Aws/S3/Model/Acp.php:27
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Rds\\Exception\\RdsException' not found in wp-content/plugins/amberlink/vendor/aws/Aws/Rds/Exception/InvalidDBParameterGroupStateException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Iam\\Exception\\IamException' not found in wp-content/plugins/amberlink/vendor/aws/Aws/Iam/Exception/EntityAlreadyExistsException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/amberlink/vendor/aws/Aws/S3/Exception/DeleteMultipleObjectsException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Exception\\ServiceResponseException' not found in wp-content/plugins/amberlink/vendor/aws/Aws/DynamoDbStreams/Exception/DynamoDbStreamsException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\CloudFront\\Exception\\CloudFrontException' not found in wp-content/plugins/amberlink/vendor/aws/Aws/CloudFront/Exception/TooManyCacheBehaviorsException.php:22
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: links, archiving
amberlink/amber.php 92% from 13 tests
The principal PHP file in "Amber" v. 1.4.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("amberlink.php" instead of "amber.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected229,260 lines of code in 1,399 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,390 | 10,553 | 43,839 | 227,163 |
Markdown | 4 | 292 | 0 | 1,268 |
JavaScript | 1 | 58 | 32 | 467 |
CSS | 2 | 43 | 3 | 263 |
Bourne Shell | 1 | 21 | 6 | 85 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 219 | |
Interfaces | 92 | |
Traits | 2 | |
Classes | 1,287 | |
▷ Abstract classes | 42 | 3.26% |
▷ Concrete classes | 1,245 | 96.74% |
▷ Final classes | 1 | 0.08% |
Methods | 3,688 | |
▷ Static methods | 370 | 10.03% |
▷ Public methods | 2,952 | 80.04% |
▷ Protected methods | 572 | 15.51% |
▷ Private methods | 164 | 4.45% |
Functions | 92 | |
▷ Named functions | 1 | 1.09% |
▷ Anonymous functions | 91 | 98.91% |
Constants | 1,159 | |
▷ Global constants | 15 | 1.29% |
▷ Class constants | 1,144 | 98.71% |
▷ Public constants | 1,144 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/close-button.png | 1.21KB | 0.21KB | ▼ 82.28% |
css/alert-large.png | 1.78KB | 0.82KB | ▼ 53.95% |
css/check-small.png | 1.48KB | 0.51KB | ▼ 65.64% |
css/alert-small.png | 1.31KB | 0.40KB | ▼ 69.52% |