84% prevent-copying-rss-feeds

Code Review | wp-feed-bypass

WordPress plugin wp-feed-bypass scored84%from 54 tests.

About plugin

  • Plugin page: prevent-copying-r...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Jul 13, 2016
  • Number of updates: 19
  • Update frequency: every 17.3 days
  • Top authors: famarini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /677 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
Install script ran successfully

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

An overview of server-side resources used by wp-feed-bypass
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.82 ▼0.85
Dashboard /wp-admin3.32 ▲0.0248.25 ▲1.84
Posts /wp-admin/edit.php3.38 ▲0.0140.95 ▼3.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.43 ▼16.23
Media Library /wp-admin/upload.php3.25 ▲0.0135.45 ▲1.71
Feed ByPass /wp-admin/options-general.php?page=wp-feed-bypass3.2129.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for wp-feed-bypass
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.45 ▲0.101.92 ▲0.1145.79 ▲6.85
Dashboard /wp-admin2,196 ▲295.55 ▼0.1384.69 ▼13.8035.04 ▼5.12
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0333.99 ▲0.8935.42 ▼7.00
Add New Post /wp-admin/post-new.php1,529 ▲323.54 ▲0.41599.81 ▼43.0648.81 ▼16.02
Media Library /wp-admin/upload.php1,404 ▲44.14 ▼0.0492.14 ▼4.3342.76 ▼1.52
Feed ByPass /wp-admin/options-general.php?page=wp-feed-bypass7942.0224.3325.38

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/prevent-copying-rss-feeds/wp-feed-bypass.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
4 plugin tags: rss, bypass, rss reader, prevent content theft

prevent-copying-rss-feeds/wp-feed-bypass.php 85% from 13 tests

This is the main PHP file of "wp-feed-bypass" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("prevent-copying-rss-feeds.php" instead of "wp-feed-bypass.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131047
PO File15528

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin