83% amazing-neo-icon-font-for-elementor

Code Review | amazing neo icon font for elementor

WordPress plugin amazing neo icon font for elementor scored 83% from 54 tests.

About plugin

  • Plugin page: amazing-neo-icon-...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 28, 2021
  • Latest release: Apr 20, 2022
  • Number of updates: 7
  • Update frequency: every 51.1 days
  • Top authors: mudssar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.29ms] Passed 4 tests

An overview of server-side resources used by amazing neo icon font for elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.90 ▼5.31
Dashboard /wp-admin3.31 ▲0.0144.37 ▼6.61
Posts /wp-admin/edit.php3.36 ▲0.0143.59 ▼4.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.55 ▼8.79
Media Library /wp-admin/upload.php3.23 ▲0.0036.70 ▲3.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for amazing neo icon font for elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.22 ▼1.151.56 ▼0.5439.92 ▼2.22
Dashboard /wp-admin2,221 ▲365.83 ▼0.0798.74 ▼1.1440.05 ▼10.54
Posts /wp-admin/edit.php2,106 ▲352.01 ▼0.0137.64 ▼0.6634.90 ▼2.88
Add New Post /wp-admin/post-new.php1,555 ▲4118.60 ▲0.90619.67 ▼42.2175.42 ▲18.90
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.0298.27 ▲0.1947.21 ▲4.89

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementoramazing\\add_action() in wp-content/plugins/amazing-neo-icon-font-for-elementor/plugin.php:101

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% 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
9 plugin tags: icon font, amazing neo icon, amazing, icon, elementor widgets...

amazing-neo-icon-font-for-elementor/amazing-neo-for-elementor.php 77% from 13 tests

"amazing neo icon font for elementor" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("amazing-neo-icon-font-for-elementor.php" instead of "amazing-neo-for-elementor.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 plugin9,607 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG2005,226
PHP82425404,312
CSS3132963
JavaScript1236

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods47
▷ Static methods12.13%
▷ Public methods3165.96%
▷ Protected methods1225.53%
▷ Private methods48.51%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includs/amazing-neo-logo.png6.71KB4.23KB▼ 36.90%
includs/old amazing-neo-logo.png.png3.91KB2.33KB▼ 40.41%
includs/amazing-logo-16.png0.36KB0.26KB▼ 28.42%