84% gsy-content-filter

Code Review | GSY Content Filter

WordPress plugin GSY Content Filter scored 84% from 54 tests.

About plugin

  • Plugin page: gsy-content-filter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Jan 18, 2015
  • Number of updates: 18
  • Update frequency: every 8.1 days
  • Top authors: georgi.s.yankov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,404 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.53ms] Passed 4 tests

A check of server-side resources used by GSY Content Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.82 ▲1.67
Dashboard /wp-admin3.44 ▲0.1345.16 ▼3.00
Posts /wp-admin/edit.php3.55 ▲0.1947.31 ▲2.81
Add New Post /wp-admin/post-new.php6.03 ▲0.1582.15 ▼11.41
Media Library /wp-admin/upload.php3.36 ▲0.1336.13 ▼1.38
GSY Content Filter /wp-admin/options-general.php?page=gsy-content-filter3.3331.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for GSY Content Filter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.25 ▼1.122.01 ▼0.0143.54 ▼2.37
Dashboard /wp-admin2,215 ▲274.87 ▲0.01108.34 ▲5.9437.76 ▼3.75
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0540.60 ▲7.3734.40 ▲0.99
Add New Post /wp-admin/post-new.php1,533 ▼123.21 ▲0.12578.80 ▼104.0753.56 ▼9.99
Media Library /wp-admin/upload.php1,394 ▲34.21 ▲0.0395.01 ▼1.4941.79 ▼6.06
GSY Content Filter /wp-admin/options-general.php?page=gsy-content-filter1,8161.7029.3053.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gsy-content-filter/includes/class-gsy-content-filter.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

gsy-content-filter/gsy-content-filter.php Passed 13 tests

The entry point to "GSY Content Filter" version 1.0 is a PHP file that has certain tags in its header comment area
63 characters long description:
Filter words from the title, content, excerpt or tags in posts.

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
Success! There were no dangerous files found in this plugin443 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP36772262
JavaScript1331086
PO File2182070
CSS12025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin