Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼0.15ms] Passed 4 tests
An overview of server-side resources used by WP Rekogni
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 46.12 ▲4.09 |
Dashboard /wp-admin | 3.67 ▲0.36 | 50.32 ▼2.00 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 46.15 ▲2.24 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 84.89 ▼4.91 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.23 ▲4.46 |
Server storage [IO: ▲7.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 889 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Rekogni
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.80 ▲0.42 | 1.78 ▼0.06 | 45.91 ▲4.27 |
Dashboard /wp-admin | 2,222 ▲37 | 4.79 ▼0.07 | 112.14 ▼3.84 | 42.35 ▼1.97 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.05 ▲0.01 | 35.38 ▼4.33 | 34.16 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.20 ▲0.21 | 645.60 ▼15.16 | 56.41 ▼5.49 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.21 ▼0.03 | 94.80 ▼14.08 | 44.51 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 321× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/DeviceFarm/DeviceFarmClient.php:108
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/CodeDeploy/Exception/CodeDeployException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/Rds/Exception/RdsException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/wp-rekogni/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/Ec2/Exception/Ec2Exception.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPIClient.php:19
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/Ssm/Exception/SsmException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractRestParser' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/Api/Parser/RestJsonParser.php:11
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/DirectoryService/DirectoryServiceClient.php:90
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-rekogni/vendor/aws/aws-sdk-php/src/Route53Domains/Route53DomainsClient.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid version format
wp-rekogni/wp-rekogni.php Passed 13 tests
This is the main PHP file of "WP Rekogni" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Assign Tags to Posts By Amazon Rekognition
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin33,869 lines of code in 788 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 741 | 4,615 | 18,751 | 24,218 |
JSON | 29 | 8 | 0 | 6,237 |
Markdown | 12 | 982 | 0 | 3,298 |
reStructuredText | 1 | 35 | 29 | 59 |
make | 2 | 10 | 0 | 22 |
YAML | 2 | 5 | 0 | 21 |
XML | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 230 | |
Interfaces | 24 | |
Traits | 9 | |
Classes | 420 | |
▷ Abstract classes | 6 | 1.43% |
▷ Concrete classes | 414 | 98.57% |
▷ Final classes | 10 | 2.42% |
Methods | 1,791 | |
▷ Static methods | 206 | 11.50% |
▷ Public methods | 1,259 | 70.30% |
▷ Protected methods | 70 | 3.91% |
▷ Private methods | 462 | 25.80% |
Functions | 363 | |
▷ Named functions | 72 | 19.83% |
▷ Anonymous functions | 291 | 80.17% |
Constants | 136 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 136 | 100.00% |
▷ Public constants | 136 | 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
No PNG files were detected