84% simple-schema-reviews

Code Review | Simple Schema Reviews

WordPress plugin Simple Schema Reviews scored84%from 54 tests.

About plugin

  • Plugin page: simple-schema-rev...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Dec 15, 2019
  • Latest release: Dec 30, 2019
  • Number of updates: 11
  • Update frequency: every 1.6 days
  • Top authors: perthweb (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /655 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.14ms] Passed 4 tests

This is a short check of server-side resources used by Simple Schema Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0531.44 ▼7.45
Dashboard /wp-admin3.34 ▼0.0145.29 ▼15.76
Posts /wp-admin/edit.php3.39 ▲0.0346.93 ▼0.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.15 ▼16.69
Media Library /wp-admin/upload.php3.27 ▲0.0337.46 ▼0.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Simple Schema Reviews: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.20 ▼1.451.53 ▼0.1939.61 ▼0.11
Dashboard /wp-admin2,225 ▲364.86 ▼1.07108.81 ▲6.2741.54 ▼0.75
Posts /wp-admin/edit.php2,105 ▲342.05 ▲0.0139.49 ▲2.9933.92 ▼2.11
Add New Post /wp-admin/post-new.php1,527 ▲717.52 ▼5.27644.93 ▼29.8051.08 ▼4.36
Media Library /wp-admin/upload.php1,407 ▲164.23 ▲0.04109.42 ▼3.1746.94 ▲2.34

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_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-schema-reviews/simple-markup.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-schema-reviews/simple-markup.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Simple Schema Reviews Plugin Option Page) image not found
You can take inspiration from this readme.txt

simple-schema-reviews/simple-options.php 92% from 13 tests

Analyzing the main PHP file in "Simple Schema Reviews" version 1.0.0
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-schema-reviews.php" instead of "simple-options.php")

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
There were no executable files found in this plugin178 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24559178

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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