84% author-guide

Code Review | Author Guide

WordPress plugin Author Guide scored84%from 54 tests.

About plugin

  • Plugin page: author-guide
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 21, 2019
  • Latest release: Aug 22, 2019
  • Number of updates: 8
  • Update frequency: every 13.5 days
  • Top authors: Banochkin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 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.01MB] [CPU: ▼7.18ms] Passed 4 tests

Analyzing server-side resources used by Author Guide
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.03 ▼7.30
Dashboard /wp-admin3.32 ▲0.0148.35 ▼7.44
Posts /wp-admin/edit.php3.37 ▲0.0163.00 ▲11.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.82 ▼11.54
Media Library /wp-admin/upload.php3.24 ▲0.0139.03 ▼2.44
Author Guide /wp-admin/options-general.php?page=author-guide-settings3.2740.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Author Guide
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.26 ▼0.371.63 ▼0.2442.29 ▼0.42
Dashboard /wp-admin2,214 ▲375.62 ▲0.0392.61 ▼12.8939.91 ▼4.15
Posts /wp-admin/edit.php2,119 ▲162.01 ▼0.0240.32 ▲2.7837.12 ▲3.73
Add New Post /wp-admin/post-new.php1,539 ▲1123.10 ▼0.09685.54 ▼12.9670.22 ▲17.24
Media Library /wp-admin/upload.php1,416 ▲194.14 ▼0.0699.24 ▼3.2246.39 ▼4.86
Author Guide /wp-admin/options-general.php?page=author-guide-settings1,4946.53137.6653.32

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
Please 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/author-guide/author-guide.php:22

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: editor, content, author

author-guide/author-guide.php Passed 13 tests

The main PHP script in "Author Guide" version 1.0 is automatically included on every request by WordPress
128 characters long description:
Страница для авторов с инструкцией по публикации материалов на сайте.

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 plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16857

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin