83% call-now-icon-animate

Code Review | Call Now Icon Animate

WordPress plugin Call Now Icon Animate scored 83% from 54 tests.

About plugin

  • Plugin page: call-now-icon-ani...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.0.0
  • WordPress version: 5.8.1
  • First release: Jun 9, 2017
  • Latest release: Apr 23, 2018
  • Number of updates: 12
  • Update frequency: every 26.6 days
  • Top authors: alantien99 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

7,000+ active / 22,813 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼253.40ms] Passed 4 tests

Server-side resources used by Call Now Icon Animate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1528.47 ▲10.88
Dashboard /wp-admin3.10 ▲0.0436.32 ▼0.59
Posts /wp-admin/edit.php3.15 ▲0.0434.05 ▼3.77
Add New Post /wp-admin/post-new.php5.46 ▲0.0279.28 ▼1,001.33
Media Library /wp-admin/upload.php3.04 ▲0.0324.43 ▼7.89
Call Now Icon Animate /wp-admin/options-general.php?page=call-now-icon3.0025.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
cnbm

Browser metrics Passed 4 tests

A check of browser resources used by Call Now Icon Animate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,711 ▲7516.41 ▲0.695.40 ▼3.0077.37 ▼1.53
Dashboard /wp-admin2,962 ▲776.59 ▲0.51114.41 ▼12.62170.93 ▲2.98
Posts /wp-admin/edit.php2,773 ▲303.31 ▲0.0767.33 ▲0.73164.32 ▲19.94
Add New Post /wp-admin/post-new.php2,344 ▼1,57316.09 ▼2.77413.18 ▼29.72158.63 ▼15.01
Media Library /wp-admin/upload.php1,785 ▲335.94 ▲0.38127.56 ▼19.46188.47 ▲0.31
Call Now Icon Animate /wp-admin/options-general.php?page=call-now-icon1,6533.4578.20127.45

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
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • cnbm

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
Everything seems fine, however 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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/call-now-icon-animate/call-now-icon.php:31

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === call-now-icon-animate === )
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

call-now-icon-animate/call-now-icon.php 92% from 13 tests

This is the main PHP file of "Call Now Icon Animate" version 0.1.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: Please rename the main PHP file in this plugin to the plugin slug ("call-now-icon-animate.php" instead of "call-now-icon.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 plugin348 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12125189
CSS100148
JavaScript10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin