84% d64-lsr-stopper

Code Review | D64 LSR-Stopper

WordPress plugin D64 LSR-Stopper scored84%from 54 tests.

About plugin

  • Plugin page: d64-lsr-stopper
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Jun 18, 2012
  • Latest release: Dec 20, 2013
  • Number of updates: 20
  • Update frequency: every 27.5 days
  • Top authors: GIGALinux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,247 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.13MB] [CPU: ▼12.64ms] Passed 4 tests

Server-side resources used by D64 LSR-Stopper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2134.79 ▼3.14
Dashboard /wp-admin3.50 ▲0.1950.03 ▼2.12
Posts /wp-admin/edit.php3.61 ▲0.2549.67 ▼1.36
Add New Post /wp-admin/post-new.php4.79 ▼1.1047.62 ▼43.94
Media Library /wp-admin/upload.php3.42 ▲0.1940.82 ▲3.82

Server storage [IO: ▲0.12MB] [DB: ▲0.01MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/d64-lsr-stopper/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
d64_lsr_blacklist

Browser metrics Passed 4 tests

An overview of browser requirements for D64 LSR-Stopper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6413.17 ▼1.091.62 ▼0.1437.63 ▼5.53
Dashboard /wp-admin2,234 ▲315.06 ▲0.21112.59 ▲1.0660.67 ▲20.58
Posts /wp-admin/edit.php2,103 ▲62.00 ▼0.0037.57 ▼2.6334.57 ▼2.85
Add New Post /wp-admin/post-new.php1,546 ▲1523.23 ▼0.00653.51 ▲38.3366.66 ▲8.08
Media Library /wp-admin/upload.php1,400 ▼04.30 ▲0.04100.81 ▼5.3246.51 ▲0.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • d64_lsr_blacklist

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/d64-lsr-stopper/d64-lsr-stopper.php:129

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: campaign, politics

d64-lsr-stopper/d64-lsr-stopper.php Passed 13 tests

The main PHP file in "D64 LSR-Stopper" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
138 characters long description:
Mit diesem Plugin verhinderst du ungewollte Verlinkungen zu Medien, welche das Leistungsschutzrecht unterstützen bzw. in Anspruch nehmen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin797 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2144167797

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity106.50
▷ Minimum class complexity94.00
▷ Maximum class complexity119.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods5779.17%
▷ Protected methods1520.83%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png5.39KB5.54KB0.00%
banner-772x250.fw.png73.94KB5.54KB▼ 92.51%