84% wp-rekogni

Code Review | WP Rekogni

WordPress plugin WP Rekogni scored84%from 54 tests.

About plugin

  • Plugin page: wp-rekogni
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2017
  • Latest release: Aug 30, 2017
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: mt8.biz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,224 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3546.12 ▲4.09
Dashboard /wp-admin3.67 ▲0.3650.32 ▼2.00
Posts /wp-admin/edit.php3.72 ▲0.3646.15 ▲2.24
Add New Post /wp-admin/post-new.php6.19 ▲0.3084.89 ▼4.91
Media Library /wp-admin/upload.php3.53 ▲0.3040.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.80 ▲0.421.78 ▼0.0645.91 ▲4.27
Dashboard /wp-admin2,222 ▲374.79 ▼0.07112.14 ▼3.8442.35 ▼1.97
Posts /wp-admin/edit.php2,105 ▲192.05 ▲0.0135.38 ▼4.3334.16 ▼0.56
Add New Post /wp-admin/post-new.php1,547 ▲2823.20 ▲0.21645.60 ▼15.1656.41 ▼5.49
Media Library /wp-admin/upload.php1,407 ▲164.21 ▼0.0394.80 ▼14.0844.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP7414,61518,75124,218
JSON29806,237
Markdown1298203,298
reStructuredText1352959
make210022
YAML25021
XML13014

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 code0.38
Average class complexity6.65
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces230
Interfaces24
Traits9
Classes420
▷ Abstract classes61.43%
▷ Concrete classes41498.57%
▷ Final classes102.42%
Methods1,791
▷ Static methods20611.50%
▷ Public methods1,25970.30%
▷ Protected methods703.91%
▷ Private methods46225.80%
Functions363
▷ Named functions7219.83%
▷ Anonymous functions29180.17%
Constants136
▷ Global constants00.00%
▷ Class constants136100.00%
▷ Public constants136100.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