83% ownerauthor-ad-split-for-genesis

Code Review | Owner/Author Ad Split for Genesis

WordPress plugin Owner/Author Ad Split for Genesis scored 83% from 54 tests.

About plugin

  • Plugin page: ownerauthor-ad-sp...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.6.1
  • WordPress version: 6.3.1
  • First release: May 23, 2016
  • Latest release: Oct 10, 2016
  • Number of updates: 7
  • Update frequency: every 20.0 days
  • Top authors: joshlimecuda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 686 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼14.97ms] Passed 4 tests

An overview of server-side resources used by Owner/Author Ad Split for Genesis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0750.17 ▲9.73
Dashboard /wp-admin3.41 ▲0.1144.84 ▲1.32
Posts /wp-admin/edit.php3.38 ▲0.0244.04 ▼3.55
Add New Post /wp-admin/post-new.php3.26 ▼2.6334.96 ▼58.76
Media Library /wp-admin/upload.php3.34 ▲0.1036.58 ▲1.13

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Owner/Author Ad Split for Genesis
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.16 ▼1.131.62 ▼0.8341.28 ▼8.90
Dashboard /wp-admin2,206 ▲185.87 ▼0.03104.82 ▲3.7540.41 ▼0.53
Posts /wp-admin/edit.php1,337 ▼7511.14 ▼0.867.65 ▼33.0332.60 ▼3.05
Add New Post /wp-admin/post-new.php45 ▼1,4970.44 ▼17.750.09 ▼619.179.41 ▼49.61
Media Library /wp-admin/upload.php1,379 ▼34.22 ▼0.08100.44 ▲3.1475.11 ▲30.83

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

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

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Admin_Boxes' not found in wp-content/plugins/ownerauthor-ad-split-for-genesis/admin/Global_Settings.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% 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: genesis, ads, adsense, ad sharing

ownerauthor-ad-split-for-genesis/adsense-owner-author-split.php 69% from 13 tests

"Owner/Author Ad Split for Genesis" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ownerauthor-ad-split-for-genesis.php" instead of "adsense-owner-author-split.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin562 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8246432522
JavaScript215040

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.71
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods615.79%
▷ Public methods3489.47%
▷ Protected methods00.00%
▷ Private methods410.53%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin