84% ada-views-counter

Code Review | Ada views counter

WordPress plugin Ada views counter scored84%from 54 tests.

About plugin

  • Plugin page: ada-views-counter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 26, 2022
  • Latest release: Sep 26, 2022
  • Number of updates: 2
  • Update frequency: every 16.0 days
  • Top authors: loiseu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /796 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Ada views counter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.41 ▲3.00
Dashboard /wp-admin3.32 ▲0.0150.73 ▼3.45
Posts /wp-admin/edit.php3.37 ▲0.0153.07 ▲4.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.93 ▼23.23
Media Library /wp-admin/upload.php3.23 ▲0.0134.45 ▼4.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Ada views counter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲4213.35 ▼1.324.41 ▲2.5641.04 ▼3.24
Dashboard /wp-admin2,216 ▲254.84 ▼1.05107.64 ▼0.3741.26 ▲1.25
Posts /wp-admin/edit.php2,115 ▲262.02 ▼0.0235.35 ▼4.0735.32 ▼0.51
Add New Post /wp-admin/post-new.php6,222 ▲4,70018.99 ▼4.22921.11 ▲213.4362.35 ▼12.27
Media Library /wp-admin/upload.php1,407 ▲194.19 ▲0.0495.24 ▼15.0344.10 ▼4.37

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ada-views-counter/ada-views-counter.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ada-views-counter/admin/templates/info.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


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
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

ada-views-counter/ada-views-counter.php 92% from 13 tests

"Ada views counter" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File18829

PHP code Passed 2 tests

A short 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.42
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin