84% adless

Code Review | Adless

WordPress plugin Adless scored84%from 54 tests.

About plugin

  • Plugin page: adless
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.0
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Aug 26, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: adless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.04ms] Passed 4 tests

A check of server-side resources used by Adless
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.57 ▲0.35
Dashboard /wp-admin3.35 ▲0.0444.95 ▼0.47
Posts /wp-admin/edit.php3.40 ▲0.0445.25 ▲1.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.90 ▼3.00
Media Library /wp-admin/upload.php3.27 ▲0.0434.04 ▼1.05
Adless /wp-admin/options-general.php?page=adless3.2936.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Adless
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.68 ▼0.994.27 ▲2.3336.85 ▼6.97
Dashboard /wp-admin2,210 ▲214.87 ▼0.05108.34 ▼1.6838.54 ▼3.10
Posts /wp-admin/edit.php2,096 ▲102.04 ▲0.0739.05 ▲0.3233.74 ▼1.14
Add New Post /wp-admin/post-new.php1,545 ▲618.32 ▼4.93586.42 ▼5.8757.43 ▲14.37
Media Library /wp-admin/upload.php1,392 ▲104.20 ▼0.0199.44 ▲3.9244.29 ▲3.11
Adless /wp-admin/options-general.php?page=adless1,5626.71144.1972.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adless/adless.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: adless, subscription, paywall

adless/adless.php Passed 13 tests

The main PHP file in "Adless" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Monetize easily with Adless

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23637199

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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