78% subscriber-website

Code Review | Subscriber website

WordPress plugin Subscriber website scored78%from 54 tests.

About plugin

  • Plugin page: subscriber-website
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.5
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Aug 4, 2016
  • Number of updates: 9
  • Update frequency: every 61.1 days
  • Top authors: enqtran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,657 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Subscriber website
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.22 ▲4.55
Dashboard /wp-admin3.32 ▼0.0248.20 ▼19.32
Posts /wp-admin/edit.php3.37 ▲0.0252.89 ▼1.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.96 ▼12.59
Media Library /wp-admin/upload.php3.24 ▲0.0238.38 ▲4.81
Subscriber /wp-admin/themes.php?page=subscriber3.1940.29

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_enqtran_subscriber_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Subscriber website
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.42 ▼0.042.07 ▲0.3044.11 ▲0.79
Dashboard /wp-admin2,225 ▲194.86 ▼1.04103.18 ▼6.5940.13 ▼4.37
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0239.26 ▼3.8235.77 ▼3.66
Add New Post /wp-admin/post-new.php1,529 ▼517.58 ▼5.81632.70 ▲6.1049.74 ▼6.68
Media Library /wp-admin/upload.php1,398 ▼24.26 ▼0.0295.52 ▼14.0743.99 ▼2.76
Subscriber /wp-admin/themes.php?page=subscriber8892.0421.7729.10

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_enqtran_subscriber_widget
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=subscriber
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 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/subscriber-website/plugin_enqtran_subscriber_website.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png)
The official readme.txt is a good inspiration

subscriber-website/plugin_enqtran_subscriber_website.php 92% from 13 tests

Analyzing the main PHP file in "Subscriber website" version 1.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("subscriber-website.php" instead of "plugin_enqtran_subscriber_website.php")

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
There were no executable files found in this plugin288 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12161288

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png3.01KB2.52KB▼ 16.16%
screenshot-3.png7.45KB4.88KB▼ 34.50%
screenshot-5.png9.56KB6.05KB▼ 36.74%
screenshot-6.png4.14KB2.63KB▼ 36.60%
screenshot-2.png6.24KB4.04KB▼ 35.23%