84% ab-see

Code Review | A/B See

WordPress plugin A/B See scored 84% 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: 5.9.2
  • 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 / 1,584 total downloads


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
Installer ran successfully

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

An overview of server-side resources used by A/B See
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.60 ▲2.28
Dashboard /wp-admin3.43 ▲0.0232.19 ▼2.42
Posts /wp-admin/edit.php3.65 ▲0.0138.39 ▲0.79
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.71 ▼1,173.39
Media Library /wp-admin/upload.php3.30 ▲0.0125.68 ▲1.79

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: 2 new tables, no new options
New tables

Browser metrics Passed 4 tests

A/B See: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,784 ▲3015.85 ▼0.076.32 ▲0.692.08 ▼1.05
Dashboard /wp-admin2,912 ▲516.15 ▼0.06114.97 ▼20.97156.08 ▼4.35
Posts /wp-admin/edit.php2,711 ▲233.24 ▲0.0164.41 ▼0.26134.64 ▼2.64
Add New Post /wp-admin/post-new.php1,679 ▲1821.84 ▲5.47412.14 ▲0.78155.44 ▼0.38
Media Library /wp-admin/upload.php1,715 ▲175.54 ▲0.03140.79 ▲3.09186.22 ▲4.39

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
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_ab_see
    • wp_ab_see_tracking

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ab-see/ab-see.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ab-see/ab-see.php:39
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ab-see/ab-see.php on line 37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


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-test, testing, ab test, ab testing, website optimization...

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

"A/B See" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 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 detected443 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected