84% altis-accelerate

Code Review | Altis Accelerate

WordPress plugin Altis Accelerate scored84%from 54 tests.

About plugin

  • Plugin page: altis-accelerate
  • Plugin version: 3.1.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2022
  • Latest release: Aug 17, 2023
  • Number of updates: 96
  • Update frequency: every 5.4 days
  • Top authors: altisdxp (95.83%)joehoyle (5.21%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.62MB] [CPU: ▲6.21ms] Passed 4 tests

A check of server-side resources used by Altis Accelerate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.16 ▲1.6554.40 ▲12.69
Dashboard /wp-admin5.00 ▲1.6663.95 ▲10.30
Posts /wp-admin/edit.php5.05 ▲1.6657.43 ▲7.10
Add New Post /wp-admin/post-new.php7.52 ▲1.5996.03 ▼5.25
Media Library /wp-admin/upload.php4.86 ▲1.5950.56 ▲17.30
Accelerate /wp-admin/admin.php?page=accelerate4.8645.18
Settings /wp-admin/admin.php?page=altis-accelerate-settings4.8643.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Altis Accelerate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5814.65 ▲0.301.79 ▼0.1842.29 ▼3.35
Dashboard /wp-admin2,253 ▲765.58 ▲0.0692.05 ▼1.6344.72 ▲2.63
Posts /wp-admin/edit.php2,156 ▲562.05 ▲0.0537.75 ▲3.1835.19 ▼1.56
Add New Post /wp-admin/post-new.php1,627 ▲9622.36 ▼0.67656.10 ▼98.7736.31 ▼20.02
Media Library /wp-admin/upload.php1,453 ▲534.15 ▼0.05115.54 ▲1.1949.19 ▲0.99
Accelerate /wp-admin/admin.php?page=accelerate1,0216.62159.0793.45
Settings /wp-admin/admin.php?page=altis-accelerate-settings1,0016.5261.3576.76

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 246× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/altis-accelerate/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/altis-accelerate/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/altis-accelerate/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'MathPHP\\Probability\\Distribution\\Continuous\\Continuous' not found in wp-content/plugins/altis-accelerate/vendor/markrogoyski/math-php/src/Probability/Distribution/Continuous/NoncentralT.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/altis-accelerate/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'MathPHP\\Probability\\Distribution\\Discrete\\Discrete' not found in wp-content/plugins/altis-accelerate/vendor/markrogoyski/math-php/src/Probability/Distribution/Discrete/Geometric.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/altis-accelerate/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/altis-accelerate/vendor/guzzlehttp/psr7/src/BufferStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/altis-accelerate/vendor/guzzlehttp/psr7/src/Response.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/altis-accelerate/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
7 plugin tags: dxp, personalization, analytics, openai, ai...

altis-accelerate/plugin.php 92% from 13 tests

The entry point to "Altis Accelerate" version 3.1.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("altis-accelerate.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin57,570 lines of code in 693 files:
LanguageFilesBlank linesComment linesLines of code
PHP4317,27224,98134,698
JavaScript1141,1671,6688,202
TypeScript575564064,833
Markdown1393503,120
JSON27003,028
Sass9391402,037
CSS21240121,237
SQL8517186
XML553114
make214047
YAML22124
Bourne Shell131023
SVG30021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.63
▷ Minimum class complexity1.00
▷ Maximum class complexity335.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces75
Interfaces28
Traits8
Classes337
▷ Abstract classes133.86%
▷ Concrete classes32496.14%
▷ Final classes3510.80%
Methods1,943
▷ Static methods49325.37%
▷ Public methods1,71488.21%
▷ Protected methods613.14%
▷ Private methods1688.65%
Functions610
▷ Named functions33354.59%
▷ Anonymous functions27745.41%
Constants208
▷ Global constants73.37%
▷ Class constants20196.63%
▷ Public constants19094.53%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 4.99MB with 3.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-1.png200.28KB87.55KB▼ 56.28%
.wordpress-org/screenshot-4.png53.34KB19.50KB▼ 63.43%
.wordpress-org/screenshot-2.png39.14KB14.63KB▼ 62.63%
.wordpress-org/banner-1544x500.png851.75KB267.35KB▼ 68.61%
.wordpress-org/icon.png42.53KB21.64KB▼ 49.11%