74% ab-see

Code Review | A/B See

WordPress plugin A/B See scored74%from 54 tests.

About plugin

  • Plugin page: ab-see
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Jul 21, 2015
  • Number of updates: 14
  • Update frequency: every 2.3 days
  • Top authors: sgrant (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,000 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼11.49ms] Passed 4 tests

This is a short check of server-side resources used by A/B See
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0638.48 ▼3.01
Dashboard /wp-admin3.41 ▲0.0344.64 ▼19.90
Posts /wp-admin/edit.php3.52 ▲0.1348.10 ▲0.46
Add New Post /wp-admin/post-new.php5.99 ▲0.0779.92 ▼23.52
Media Library /wp-admin/upload.php3.33 ▲0.0738.87 ▲3.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: no files
Database: 2 new tables, 6 new options
New tables
wp_ab_see
wp_ab_see_tracking
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for A/B See
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.47 ▲0.101.62 ▼0.2037.91 ▼7.44
Dashboard /wp-admin2,222 ▲374.85 ▼1.04110.65 ▲7.1243.51 ▲5.75
Posts /wp-admin/edit.php2,105 ▲162.00 ▲0.0338.12 ▲2.1534.45 ▼0.56
Add New Post /wp-admin/post-new.php1,555 ▲2718.04 ▼0.32620.06 ▲4.6766.60 ▲17.65
Media Library /wp-admin/upload.php1,407 ▲164.21 ▲0.0197.21 ▼3.6741.30 ▼2.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_ab_see
    • wp_ab_see_tracking
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ab-see/ab-see.php on line 36
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ab-see/ab-see.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ab-see/ab-see.php:39

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 Passed 29 tests

readme.txt Passed 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
7 plugin tags: ab testing, testing, split test, website optimization, ab-test...

ab-see/ab-see.php Passed 13 tests

This is the main PHP file of "A/B See" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Straightforward shortcodes for A/B testing with WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin443 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19820443

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin