73% 40nuggets

Code Review | Conversion Optimization by 40Nuggets

WordPress plugin Conversion Optimization by 40Nuggets scored 73% from 54 tests.

About plugin

  • Plugin page: 40nuggets
  • Plugin version: 0.6.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3.1
  • WordPress version: 5.8.1
  • First release: Mar 25, 2014
  • Latest release: Mar 27, 2017
  • Number of updates: 112
  • Update frequency: every 9.8 days
  • Top authors: eliav@40nuggets.com (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

40+ active / 6,328 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼138.98ms] Passed 4 tests

A check of server-side resources used by Conversion Optimization by 40Nuggets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.1249.02 ▲18.34
Dashboard /wp-admin3.24 ▲0.1960.37 ▲14.27
Posts /wp-admin/edit.php3.29 ▲0.1844.45 ▼2.09
Add New Post /wp-admin/post-new.php5.54 ▲0.1089.15 ▼567.00
Media Library /wp-admin/upload.php3.12 ▲0.1231.34 ▼1.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 2 new options
New WordPress options
Fortynuggets_Plugin__version
Fortynuggets_Plugin__installed

Browser metrics Passed 4 tests

An overview of browser requirements for Conversion Optimization by 40Nuggets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.98 ▼0.0215.33 ▲5.9352.63 ▲0.73
Dashboard /wp-admin2,985 ▲515.94 ▼0.10155.34 ▲5.33149.90 ▲47.78
Posts /wp-admin/edit.php2,778 ▲392.70 ▼0.0263.00 ▼5.3090.27 ▼2.10
Add New Post /wp-admin/post-new.php1,701 ▲2918.51 ▼0.36408.05 ▲17.84109.15 ▼0.95
Media Library /wp-admin/upload.php1,775 ▼325.02 ▼0.02143.58 ▼19.26143.53 ▲25.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/40nuggets/Fortynuggets_Plugin.php+114
    Trying to get property 'id' of non-object
  • Zombie WordPress options detected upon uninstall: 2 options
    • Fortynuggets_Plugin__installed
    • Fortynuggets_Plugin__version

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: form-action in wp-content/plugins/40nuggets/login.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/40nuggets/fortynuggets.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'Fortynuggets_Plugin' not found in wp-content/plugins/40nuggets/login.php:80

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (87 tag instead of maximum 10)
The official readme.txt might help

40nuggets/fortynuggets.php 85% from 13 tests

The principal PHP file in "Conversion Optimization by 40Nuggets" v. 0.6.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("40nuggets.php" instead of "fortynuggets.php")

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
No dangerous file extensions were detected895 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10200498889
JavaScript1006

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.43
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
Methods85
▷ Static methods00.00%
▷ Public methods5362.35%
▷ Protected methods2529.41%
▷ Private methods78.24%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected