83% firmao-callback

Code Review | Firmao CallBack

WordPress plugin Firmao CallBack scored83%from 54 tests.

About plugin

  • Plugin page: firmao-callback
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Oct 9, 2023
  • Number of updates: 19
  • Update frequency: every 68.1 days
  • Top authors: firmao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Firmao CallBack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.37 ▲4.02
Dashboard /wp-admin3.33 ▼0.0249.08 ▼19.13
Posts /wp-admin/edit.php3.38 ▲0.0249.84 ▼2.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.52 ▼17.21
Media Library /wp-admin/upload.php3.25 ▲0.0239.87 ▼2.75
Firmao CallBack Settings /wp-admin/options-general.php?page=firmao_callback_settings_page3.2232.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Firmao CallBack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.08 ▼0.271.69 ▼0.4444.28 ▼3.90
Dashboard /wp-admin2,196 ▲195.61 ▼0.0492.10 ▼1.0736.69 ▼4.85
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0039.09 ▲2.7344.67 ▲10.40
Add New Post /wp-admin/post-new.php1,540 ▲1423.25 ▲0.17697.30 ▼15.9948.76 ▼14.30
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.1297.33 ▼11.2542.33 ▼3.52
Firmao CallBack Settings /wp-admin/options-general.php?page=firmao_callback_settings_page8042.0325.8725.44

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 add_action() in wp-content/plugins/firmao-callback/firmao_callback.php:13

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 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #4 (Ordered call notification in Firmao CRM), #5 (CallBack user appoint), #6 (CallBack user status)
  • Tags: You are using too many tags: 39 tag instead of maximum 10
The official readme.txt might help

firmao-callback/firmao_callback.php 92% from 13 tests

"Firmao CallBack" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("firmao-callback.php" instead of "firmao_callback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin99 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221559
PO File261640

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected