78% simple-editorial-guidelines

Code Review | Simple Editorial Guidelines

WordPress plugin Simple Editorial Guidelines scored78%from 54 tests.

About plugin

  • Plugin page: simple-editorial-...
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Jun 18, 2015
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: WritelyDesigned (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼112.52ms] Passed 4 tests

Analyzing server-side resources used by Simple Editorial Guidelines
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.05 ▼7.12
Dashboard /wp-admin3.32 ▼0.1154.66 ▼444.88
Posts /wp-admin/edit.php3.37 ▲0.0159.53 ▲7.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.76 ▼0.44
Media Library /wp-admin/upload.php3.24 ▲0.0139.11 ▲2.36
Editorial Guidelines /wp-admin/options-general.php?page=wd_editorial_guidelines3.2845.03

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Editorial Guidelines
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.24 ▼0.141.59 ▼0.0342.34 ▲2.24
Dashboard /wp-admin2,204 ▲245.51 ▼0.1597.83 ▲7.9444.26 ▲5.03
Posts /wp-admin/edit.php2,109 ▲61.97 ▼0.0040.25 ▲2.7135.39 ▼3.12
Add New Post /wp-admin/post-new.php6,229 ▲4,69226.17 ▲8.02924.10 ▲319.8856.47 ▼8.05
Media Library /wp-admin/upload.php1,406 ▲34.15 ▼0.12103.60 ▲3.7047.67 ▲2.89
Editorial Guidelines /wp-admin/options-general.php?page=wd_editorial_guidelines2,0147.35164.2563.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-editorial-guidelines/inc/admin-sidebar.php
    • > /wp-content/plugins/simple-editorial-guidelines/index.php
    • > /wp-content/plugins/simple-editorial-guidelines/inc/admin.php
    • > /wp-content/plugins/simple-editorial-guidelines/inc/meta-box.php
    • > /wp-content/plugins/simple-editorial-guidelines/inc/meta-styles.php
    • > /wp-content/plugins/simple-editorial-guidelines/inc/admin-primary.php
    • > /wp-content/plugins/simple-editorial-guidelines/inc/admin-structure.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=wd_editorial_guidelines
    • > Network (severe)
    wp-content/plugins/simple-editorial-guidelines/script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: editing, guest posting, guidelines, editorial, user management...

simple-editorial-guidelines/index.php 92% from 13 tests

The main PHP file in "Simple Editorial Guidelines" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-editorial-guidelines.php" instead of "index.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 plugin311 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP719427299
JavaScript15812

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin