10% apmaksats-saturs-itap-sms-paid-content-after-sms

Code Review | ITAP - Parādīt saturu pēc apmaksas

WordPress plugin ITAP - Parādīt saturu pēc apmaksas scored 10% from 54 tests.

About plugin

  • Plugin page: apmaksats-saturs-...
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Aug 1, 2017
  • Number of updates: 19
  • Update frequency: N/A
  • Top authors: kristaps071 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 654 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/apmaksats-saturs-itap-sms-paid-content-after-sms/paidcontent.php+324
    syntax error, unexpected '}', expecting end of file

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

An overview of server-side resources used by ITAP - Parādīt saturu pēc apmaksas
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.77 ▼2.95
Dashboard /wp-admin3.31 ▲0.0051.61 ▲4.21
Posts /wp-admin/edit.php3.36 ▲0.0043.90 ▼3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.63 ▲1.27
Media Library /wp-admin/upload.php3.23 ▲0.0034.59 ▼0.55

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ITAP - Parādīt saturu pēc apmaksas
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.36 ▼0.821.67 ▼0.1540.21 ▼1.32
Dashboard /wp-admin2,206 ▲145.80 ▲0.8597.93 ▼10.3839.97 ▲0.94
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0334.05 ▼2.6634.60 ▲3.45
Add New Post /wp-admin/post-new.php1,514 ▼917.67 ▼5.45673.14 ▼124.1660.40 ▼2.34
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.04108.04 ▼4.3544.61 ▼4.52

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/apmaksats-saturs-itap-sms-paid-content-after-sms/paidcontent.php on line 324

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: The official readme.txt might help

apmaksats-saturs-itap-sms-paid-content-after-sms/paidcontent.php 92% from 13 tests

This is the main PHP file of "ITAP - Parādīt saturu pēc apmaksas" version 1.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("apmaksats-saturs-itap-sms-paid-content-after-sms.php" instead of "paidcontent.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin480 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112513418
CSS13062

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions8
▷ Named functions8100.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
No PNG images were found in this plugin