84% admin-atlex-cloud

Code Review | Admin ATLEX Cloud

WordPress plugin Admin ATLEX Cloud scored84%from 54 tests.

About plugin

  • Plugin page: admin-atlex-cloud
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2019
  • Latest release: Apr 12, 2019
  • Number of updates: 8
  • Update frequency: every 1.4 days
  • Top authors: atlexcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,129 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.92ms] Passed 4 tests

Server-side resources used by Admin ATLEX Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.91 ▼6.61
Dashboard /wp-admin3.33 ▼0.0153.33 ▼10.32
Posts /wp-admin/edit.php3.38 ▲0.0350.95 ▲3.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.44 ▼8.32
Media Library /wp-admin/upload.php3.25 ▲0.0333.65 ▼2.42
ATLEX cloud /wp-admin/tools.php?page=atlex_cloud_tools3.2229.61
ATLEX settings /wp-admin/options-general.php?page=atlex_cloud_options3.2834.36

Server storage [IO: ▲12.57MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,656 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Admin ATLEX Cloud
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.72 ▲0.151.56 ▼0.3042.03 ▼0.52
Dashboard /wp-admin2,206 ▲325.56 ▲0.0382.74 ▼8.9138.30 ▼0.60
Posts /wp-admin/edit.php2,108 ▲51.99 ▲0.0135.76 ▼0.0332.94 ▼5.66
Add New Post /wp-admin/post-new.php1,532 ▲623.22 ▼0.40671.29 ▼23.1352.13 ▼4.76
Media Library /wp-admin/upload.php1,408 ▲84.30 ▲0.13100.58 ▼10.8143.95 ▼1.89
ATLEX cloud /wp-admin/tools.php?page=atlex_cloud_tools7711.9925.2423.02
ATLEX settings /wp-admin/options-general.php?page=atlex_cloud_options1,0162.0324.7323.65

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1279× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/OpsWorks/Enum/LayerType.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/S3/Exception/NoLoggingStatusForKeyException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/admin-atlex-cloud/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Exception\\ServiceResponseException' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/CognitoSync/Exception/CognitoSyncException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\CloudFront\\Exception\\CloudFrontException' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/CloudFront/Exception/InvalidErrorCodeException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\ElastiCache\\Exception\\ElastiCacheException' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/ElastiCache/Exception/InvalidCacheClusterStateException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Support\\Exception\\SupportException' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/Support/Exception/CaseCreationLimitExceededException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/admin-atlex-cloud/vendor/guzzlehttp/promises/src/CancellationException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/admin-atlex-cloud/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Route53\\Exception\\Route53Exception' not found in wp-content/plugins/admin-atlex-cloud/vendor/aws/aws-sdk-php/src/Aws/Route53/Exception/HealthCheckInUseException.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
8 plugin tags: restore, cdn, backup, amazone s3, cloud...

admin-atlex-cloud/atlex-cloudplugin.php 92% from 13 tests

This is the main PHP file of "Admin ATLEX Cloud" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-atlex-cloud.php" instead of "atlex-cloudplugin.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
Success! There were no dangerous files found in this plugin254,552 lines of code in 1,629 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,54513,75248,231246,401
Markdown271,54205,228
JSON403902,158
JavaScript2661352
XML73711277
YAML416068
Ant110134
CSS12013
Bourne Again Shell10012
make1409

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.32
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces259
Interfaces111
Traits7
Classes1,385
▷ Abstract classes453.25%
▷ Concrete classes1,34096.75%
▷ Final classes100.75%
Methods4,795
▷ Static methods3988.30%
▷ Public methods4,14286.38%
▷ Protected methods4018.36%
▷ Private methods2525.26%
Functions246
▷ Named functions5622.76%
▷ Anonymous functions19077.24%
Constants1,202
▷ Global constants20.17%
▷ Class constants1,20099.83%
▷ Public constants1,200100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/cloud-tool.png0.60KB0.56KB▼ 6.19%
assets/img/settings.png0.53KB0.53KB0.00%