84% post-pay-counter-wp-slimstat-visits

Code Review | Post Pay Counter - WP-Slimstat visits

WordPress plugin Post Pay Counter - WP-Slimstat visits scored84%from 54 tests.

About plugin

  • Plugin page: post-pay-counter-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2016
  • Latest release: Nov 12, 2022
  • Number of updates: 18
  • Update frequency: every 130.5 days
  • Top authors: Ste_95 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,255 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
Installer ran successfully

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

A check of server-side resources used by Post Pay Counter - WP-Slimstat visits
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.31 ▲3.30
Dashboard /wp-admin3.31 ▲0.0145.81 ▲0.04
Posts /wp-admin/edit.php3.36 ▲0.0147.02 ▲0.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.20 ▲11.18
Media Library /wp-admin/upload.php3.23 ▲0.0031.67 ▼0.79

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

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

Browser metrics Passed 4 tests

Post Pay Counter - WP-Slimstat visits: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.69 ▲0.0241.42 ▲1.82
Dashboard /wp-admin2,195 ▲155.59 ▼0.0492.76 ▲6.0841.50 ▲1.88
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0542.43 ▲4.0034.71 ▼0.97
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.11572.58 ▼125.1956.98 ▲4.42
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0094.08 ▼10.8341.79 ▼5.48

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-pay-counter-wp-slimstat-visits/ppc-slimstat-visits.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: wp-slimstat, visits, post pay counter

post-pay-counter-wp-slimstat-visits/ppc-slimstat-visits.php 92% from 13 tests

The main PHP file in "Post Pay Counter - WP-Slimstat visits" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-pay-counter-wp-slimstat-visits.php" instead of "ppc-slimstat-visits.php")

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
Good job! No executable or dangerous file extensions detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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

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