84% publishers

Code Review | Publishers

WordPress plugin Publishers scored 84% from 54 tests.

About plugin

  • Plugin page: publishers
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2021
  • Latest release: Dec 5, 2022
  • Number of updates: 11
  • Update frequency: every 61.3 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Publishers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1445.55 ▼0.67
Dashboard /wp-admin3.43 ▲0.1351.45 ▼2.28
Posts /wp-admin/edit.php3.55 ▲0.2050.58 ▼0.49
Add New Post /wp-admin/post-new.php6.02 ▲0.1496.63 ▲1.34
Media Library /wp-admin/upload.php3.36 ▲0.1337.03 ▼3.39

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Publishers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,578 ▼22214.15 ▲0.882.79 ▲0.7044.73 ▲0.67
Dashboard /wp-admin1,919 ▼2875.56 ▼0.2790.15 ▼6.3976.45 ▲39.88
Posts /wp-admin/edit.php2,071 ▼182.02 ▲0.0237.21 ▲3.6336.56 ▲1.12
Add New Post /wp-admin/post-new.php6,498 ▲4,97920.44 ▼2.401,128.52 ▲390.0057.42 ▼15.83
Media Library /wp-admin/upload.php1,370 ▼154.16 ▲0.0198.38 ▼4.3443.06 ▼0.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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)
Even though everything seems fine, this is not 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/publishers/embeds/giphy.php
    • > /wp-content/plugins/publishers/embeds/youtube.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: companion plugin, magazines, blogs, publishers

publishers/publishers.php Passed 13 tests

"Publishers" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Companion plugin for the Publishers theme: https://wordpress.org/themes/publishers/.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin597 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32652551
JavaScript10046

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity7.00
▷ Maximum class complexity9.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods430.77%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions3589.74%
▷ Anonymous functions410.26%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin