78% landline-remover

Code Review | Landline Remover

WordPress plugin Landline Remover scored78%from 54 tests.

About plugin

  • Plugin page: landline-remover
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: textdrip (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.70ms] Passed 4 tests

An overview of server-side resources used by Landline Remover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.39 ▼1.32
Dashboard /wp-admin3.38 ▲0.0747.79 ▼5.05
Posts /wp-admin/edit.php3.49 ▲0.1345.31 ▼0.91
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.62 ▼11.29
Media Library /wp-admin/upload.php3.30 ▲0.0736.83 ▼1.14
Settings /wp-admin/admin.php?page=wp-landline-remover-api-settings3.2733.82
Number Checker /wp-admin/admin.php?page=wp-landline-remover-api-number-checker3.2738.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Landline Remover: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.36 ▲0.072.05 ▲0.5745.76 ▲5.39
Dashboard /wp-admin2,230 ▲495.82 ▲0.0794.52 ▼11.6733.55 ▼9.90
Posts /wp-admin/edit.php2,135 ▲352.31 ▲0.3235.93 ▼2.4534.91 ▲0.74
Add New Post /wp-admin/post-new.php1,719 ▲19324.93 ▲1.94604.39 ▼80.3251.46 ▼17.37
Media Library /wp-admin/upload.php1,504 ▲1014.38 ▲0.16102.66 ▼2.7344.91 ▼1.58
Settings /wp-admin/admin.php?page=wp-landline-remover-api-settings8301.8725.8322.46
Number Checker /wp-admin/admin.php?page=wp-landline-remover-api-number-checker8731.8728.9725.50

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-remaining-credits-display.php
    • > /wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-admin-display.php
    • > /wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-number-checker-display.php
    • > /wp-content/plugins/landline-remover/public/partials/wp-landline-remover-api-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/landline-remover/admin/partials/wp-landline-remover-api-settings-display.php:39

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: api, landline remover api

landline-remover/wp-landline-remover-api.php 77% from 13 tests

This is the main PHP file of "Landline Remover" version 1.0.2, 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:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("landline-remover.php" instead of "wp-landline-remover-api.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 532 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin370 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14133559353
JavaScript323312
CSS31145

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.47MB with 0.34MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon/logo.png107.90KB30.06KB▼ 72.14%
assets/screenshot-2.png185.15KB45.99KB▼ 75.16%
assets/icon/FAVICON.png1.82KB0.68KB▼ 62.35%
assets/screenshot-1.png186.78KB41.92KB▼ 77.56%