84% paycall-analytics

Code Review | PayCall Analytics

WordPress plugin PayCall Analytics scored84%from 54 tests.

About plugin

  • Plugin page: paycall-analytics
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 26, 2020
  • Latest release: Nov 29, 2020
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: paycall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by PayCall Analytics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.81 ▼7.18
Dashboard /wp-admin3.31 ▼0.0352.41 ▼14.09
Posts /wp-admin/edit.php3.36 ▲0.0147.82 ▼0.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.92 ▼1.44
Media Library /wp-admin/upload.php3.23 ▲0.0136.94 ▲1.51

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for PayCall Analytics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12313.27 ▼0.995.64 ▲3.8740.31 ▼3.47
Dashboard /wp-admin2,237 ▲344.83 ▼0.05102.20 ▼7.9142.04 ▲0.24
Posts /wp-admin/edit.php2,113 ▲101.97 ▼0.0435.82 ▼3.6533.78 ▼2.23
Add New Post /wp-admin/post-new.php1,553 ▲823.12 ▲0.05607.80 ▲12.5253.28 ▲3.42
Media Library /wp-admin/upload.php1,413 ▲134.25 ▲0.01105.88 ▼1.2045.43 ▼1.18

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 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/paycall-analytics/paycall-analytics.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === paycall-analytics === )
The official readme.txt might help

paycall-analytics/paycall-analytics.php 92% from 13 tests

"PayCall Analytics" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151259

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.45
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin