88% adobe-analytics

Code Review | Adobe Analytics for WordPress by RepEquity

WordPress plugin Adobe Analytics for WordPress by RepEquity scored 88% from 54 tests.

About plugin

  • Plugin page: adobe-analytics
  • Plugin version: 0.6.8
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Mar 25, 2014
  • Latest release: Jun 18, 2014
  • Number of updates: 6
  • Update frequency: every 15.0 days
  • Top authors: smiro2000 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 2,099 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼299.42ms] Passed 4 tests

Analyzing server-side resources used by Adobe Analytics for WordPress by RepEquity
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.18 ▼0.3416.70 ▼35.13
Dashboard /wp-admin3.60 ▲0.1934.91 ▲2.01
Posts /wp-admin/edit.php3.82 ▲0.1837.79 ▼7.20
Add New Post /wp-admin/post-new.php7.08 ▲0.1193.77 ▼1,157.36
Media Library /wp-admin/upload.php3.48 ▲0.1825.75 ▲2.29
Adobe Analytics /wp-admin/options-general.php?page=adobe_analytics3.4724.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Adobe Analytics for WordPress by RepEquity
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲3815.59 ▼0.056.52 ▼0.313.22 ▲0.50
Dashboard /wp-admin2,880 ▲196.13 ▼0.01119.52 ▼11.69152.93 ▼8.82
Posts /wp-admin/edit.php2,693 ▲23.25 ▲0.0163.73 ▼2.21145.74 ▼6.39
Add New Post /wp-admin/post-new.php1,768 ▲10717.36 ▲1.29395.08 ▼32.91171.49 ▲12.17
Media Library /wp-admin/upload.php1,706 ▲55.55 ▲0.01142.50 ▼8.59187.46 ▲0.16
Adobe Analytics /wp-admin/options-general.php?page=adobe_analytics1,4962.4154.89129.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/adobe-analytics/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adobe-analytics/metaboxes/meta_box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/adobe-analytics/adobe_analytics.php:261

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=adobe_analytics
    • > Network (severe)
    wp-content/plugins/adobe_analytics/templates/assets/admin-styles.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=adobe_analytics
    • > Network (severe)
    wp-content/plugins/adobe_analytics/templates/assets/admin-scripts.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
  • Requires at least: Version format is invalid
The official readme.txt might help

adobe-analytics/adobe_analytics.php 92% from 13 tests

The principal PHP file in "Adobe Analytics for WordPress by RepEquity" v. 0.6.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("adobe-analytics.php" instead of "adobe_analytics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,786 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity17.40
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods28.70%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
metaboxes/images/image.png2.74KB0.10KB▼ 96.43%
metaboxes/images/sprite.png6.06KB2.18KB▼ 64.10%
templates/assets/adobe-analytics.png3.47KB2.65KB▼ 23.66%
templates/assets/re-horizontal.png16.88KB6.21KB▼ 63.19%