83% aplazame

Code Review | Aplazame

WordPress plugin Aplazame scored 83% from 54 tests.

About plugin

  • Plugin page: aplazame
  • Plugin version: 3.8.3
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2015
  • Latest release: Aug 11, 2023
  • Number of updates: 98
  • Update frequency: every 29.4 days
  • Top authors: aplazame (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 19,819 total downloads

Benchmarks

Plugin footprint 83% 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.23MB] [CPU: ▼2.42ms] Passed 4 tests

Server-side resources used by Aplazame
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2029.02 ▼12.56
Dashboard /wp-admin3.58 ▲0.2751.81 ▼2.42
Posts /wp-admin/edit.php3.63 ▲0.2747.18 ▲2.10
Add New Post /wp-admin/post-new.php6.10 ▲0.2192.23 ▲6.18
Media Library /wp-admin/upload.php3.48 ▲0.2638.14 ▲3.20

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
aplazame_version
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
woocommerce_aplazame_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aplazame
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,482 ▼25313.16 ▼1.190.80 ▼1.2016.57 ▼29.66
Dashboard /wp-admin2,203 ▲155.85 ▲1.00104.48 ▼5.1241.43 ▼3.18
Posts /wp-admin/edit.php2,089 ▼02.06 ▼0.1036.39 ▼2.7034.41 ▲1.19
Add New Post /wp-admin/post-new.php1,533 ▼1023.08 ▲4.84638.37 ▼1.2960.57 ▲6.68
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0797.97 ▼3.1745.38 ▲0.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Http_ClientInterface' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Http/CurlClient.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Api_AplazameExceptionInterface' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Api/ApiServerException.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Api_AplazameExceptionInterface' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Api/DeserializeException.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Serializer_JsonSerializable' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Serializer/Date.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Http_ClientInterface' not found in wp-content/plugins/aplazame/lib/Aplazame/Aplazame/Http/WpClient.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Aplazame_Sdk_Http_Request' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Api/ApiRequest.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Api_AplazameExceptionInterface' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Api/ApiClientException.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/aplazame/templates/product/campaigns.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Aplazame_Sdk_Api_AplazameExceptionInterface' not found in wp-content/plugins/aplazame/lib/Aplazame/Sdk/Api/ApiCommunicationException.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_client() on null in wp-content/plugins/aplazame/classes/wc-aplazame-proxy.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in aplazame/assets to your readme.txt
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

aplazame/aplazame.php 92% from 13 tests

This is the main PHP file of "Aplazame" version 3.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "2.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,219 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP464337012,030
PO File18384189

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.61
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces5
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes39.09%
Methods131
▷ Static methods4332.82%
▷ Public methods11890.08%
▷ Protected methods32.29%
▷ Private methods107.63%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.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