84% pronamic-google-conversion

Code Review | Pronamic Google Conversion

WordPress plugin Pronamic Google Conversion scored84%from 54 tests.

About plugin

  • Plugin page: pronamic-google-c...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Nov 18, 2013
  • Latest release: Nov 18, 2013
  • Number of updates: 6
  • Update frequency: every 73.7 days
  • Top authors: remcotolsma (83.33%)pronamic (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,215 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
Install script ran successfully

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

Analyzing server-side resources used by Pronamic Google Conversion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.05 ▼3.08
Dashboard /wp-admin3.32 ▲0.0244.50 ▼3.33
Posts /wp-admin/edit.php3.37 ▲0.0145.42 ▼4.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.72 ▼15.67
Media Library /wp-admin/upload.php3.25 ▲0.0135.38 ▲2.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pronamic Google Conversion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.011.90 ▲0.1937.92 ▼1.16
Dashboard /wp-admin2,195 ▲215.53 ▼0.0782.58 ▼5.9741.49 ▼2.42
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0835.16 ▼5.1232.41 ▼6.11
Add New Post /wp-admin/post-new.php1,526 ▼222.67 ▼0.35597.31 ▼23.5553.04 ▼1.99
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0895.52 ▼3.4842.09 ▼4.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just 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/pronamic-google-conversion/pronamic-google-conversion.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: pronamic, shortcode, conversion, google

pronamic-google-conversion/pronamic-google-conversion.php 85% from 13 tests

The main PHP script in "Pronamic Google Conversion" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232856

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin