84% aptivada-for-wp

Code Review | Aptivada for WP

WordPress plugin Aptivada for WP scored84%from 54 tests.

About plugin

  • Plugin page: aptivada-for-wp
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Apr 6, 2023
  • Number of updates: 18
  • Update frequency: every 116.3 days
  • Top authors: aptivadadev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.75ms] Passed 4 tests

Server-side resources used by Aptivada for WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0143.47 ▼2.96
Dashboard /wp-admin3.58 ▼0.0553.76 ▼22.30
Posts /wp-admin/edit.php3.69 ▲0.0148.34 ▼2.49
Add New Post /wp-admin/post-new.php6.16 ▲0.0189.98 ▼11.25
Media Library /wp-admin/upload.php3.50 ▲0.0137.51 ▼2.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Aptivada for WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.54 ▼0.0499.89 ▲98.2048.08 ▲3.58
Dashboard /wp-admin2,195 ▲215.72 ▲0.1587.36 ▼12.3841.28 ▲0.01
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0135.31 ▼5.7333.71 ▼3.83
Add New Post /wp-admin/post-new.php1,554 ▲2818.51 ▲0.89651.44 ▼0.5153.94 ▲1.76
Media Library /wp-admin/upload.php1,400 ▲64.28 ▲0.08100.77 ▼4.9742.49 ▼5.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aptivada-for-wp/aptivadaforwp.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Donate link: Invalid URI ("www.audience.io")
The official readme.txt is a good inspiration

aptivada-for-wp/aptivadaforwp.php 92% from 13 tests

The main file in "Aptivada for WP" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aptivada-for-wp.php" instead of "aptivadaforwp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182357

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.71
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin