78% adobe-analytics

Code Review | Adobe Analytics for WordPress by RepEquity

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

About plugin

  • Plugin page: adobe-analytics
  • Plugin version: 0.6.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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

10+ active /2,375 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Adobe Analytics for WordPress by RepEquity
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▼0.5614.55 ▼28.88
Dashboard /wp-admin3.49 ▲0.1450.70 ▼15.17
Posts /wp-admin/edit.php3.60 ▲0.2453.25 ▲1.47
Add New Post /wp-admin/post-new.php6.10 ▲0.2190.52 ▼13.68
Media Library /wp-admin/upload.php3.41 ▲0.1835.69 ▼1.49
Adobe Analytics /wp-admin/options-general.php?page=adobe_analytics3.4034.48

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Adobe Analytics for WordPress by RepEquity
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.30 ▼0.082.19 ▲0.3841.69 ▼0.62
Dashboard /wp-admin2,202 ▲285.64 ▼0.0486.13 ▼4.4539.14 ▼5.44
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0339.78 ▲2.4835.26 ▼0.60
Add New Post /wp-admin/post-new.php6,295 ▲4,75926.34 ▲3.29904.52 ▲231.3277.16 ▲14.31
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0394.71 ▼7.0040.81 ▼4.47
Adobe Analytics /wp-admin/options-general.php?page=adobe_analytics1,1312.0129.1931.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 | 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 items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > 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 register_activation_hook() in wp-content/plugins/adobe-analytics/adobe_analytics.php:261
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adobe-analytics/metaboxes/meta_box.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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=6.3.1 - 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=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires at least: Invalid version format
  • Donate link: Invalid URI ("htpp://repequity.com")
The official readme.txt might help

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

The entry point to "Adobe Analytics for WordPress by RepEquity" version 0.6.8 is a PHP file that has certain tags in its header comment area
It is important to 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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,786 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6109227899
CSS46765694
JavaScript33639193

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
templates/assets/adobe-analytics.png3.47KB2.65KB▼ 23.66%
metaboxes/images/chosen-sprite.png0.55KB0.70KB0.00%
templates/assets/re-horizontal.png16.88KB6.21KB▼ 63.19%
metaboxes/images/image.png2.74KB0.10KB▼ 96.43%
metaboxes/images/sprite.png6.06KB2.18KB▼ 64.10%