83% archivescode-addons-for-elementor

Code Review | Archivescode addons for elementor

WordPress plugin Archivescode addons for elementor scored 83% from 54 tests.

About plugin

  • Plugin page: archivescode-addo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Sep 19, 2018
  • Number of updates: 18
  • Update frequency: every 8.2 days
  • Top authors: sarono85 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.09ms] Passed 4 tests

This is a short check of server-side resources used by Archivescode addons for elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.56 ▼7.64
Dashboard /wp-admin3.39 ▲0.0950.10 ▲1.29
Posts /wp-admin/edit.php3.50 ▲0.1549.70 ▼2.22
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.68 ▼10.55
Media Library /wp-admin/upload.php3.31 ▲0.0934.16 ▲0.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
afe_first_install_time
afe_widgets
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Archivescode addons for elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.23 ▼1.075.26 ▲2.8244.84 ▲7.64
Dashboard /wp-admin2,225 ▲345.79 ▲0.92116.28 ▲3.7742.60 ▼1.89
Posts /wp-admin/edit.php2,114 ▲251.97 ▼0.0440.90 ▼0.4337.36 ▼0.21
Add New Post /wp-admin/post-new.php1,435 ▼8422.31 ▼1.13568.42 ▼44.91104.60 ▲53.50
Media Library /wp-admin/upload.php1,410 ▲224.27 ▼0.02106.01 ▲5.8138.78 ▼4.68

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • afe_first_install_time
    • afe_widgets
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/archivescode-addons-for-elementor/admin/views/settings.php:3

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (create slider) image missing
You can take inspiration from this readme.txt

archivescode-addons-for-elementor/archivescode-for-elementor.php 85% from 13 tests

The primary PHP file in "Archivescode addons for elementor" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("archivescode-addons-for-elementor.php" instead of "archivescode-for-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin12,136 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP125021755,272
CSS10573994,390
JavaScript45831,1352,405
Markdown137069

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods66
▷ Static methods23.03%
▷ Public methods4974.24%
▷ Protected methods1218.18%
▷ Private methods57.58%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/icon.png0.51KB0.47KB▼ 8.80%
assets/owl/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%