89% define-server

Code Review | DEFINE SERVER

WordPress plugin DEFINE SERVER scored89%from 54 tests.

About plugin

  • Plugin page: define-server
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2020
  • Latest release: Mar 10, 2020
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: yumusb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.54ms] Passed 4 tests

This is a short check of server-side resources used by DEFINE SERVER
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.77 ▼6.34
Dashboard /wp-admin3.34 ▲0.0455.62 ▲4.80
Posts /wp-admin/edit.php3.39 ▲0.0350.72 ▲3.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.13 ▼6.31
Media Library /wp-admin/upload.php3.26 ▲0.0336.96 ▼1.41
DEFINE SERVER /wp-admin/options-general.php?page=define-server/define-server.php3.2332.26

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
define_server_options

Browser metrics Passed 4 tests

A check of browser resources used by DEFINE SERVER
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.371.98 ▲0.2442.76 ▼2.83
Dashboard /wp-admin2,193 ▲165.56 ▼0.1286.09 ▼3.7942.09 ▼5.99
Posts /wp-admin/edit.php2,101 ▲12.05 ▲0.0635.98 ▲1.4934.95 ▲3.10
Add New Post /wp-admin/post-new.php1,557 ▲1222.92 ▼0.07687.59 ▼1.9653.78 ▼8.06
Media Library /wp-admin/upload.php1,404 ▲14.21 ▼0.06100.80 ▼0.8340.97 ▼9.51
DEFINE SERVER /wp-admin/options-general.php?page=define-server/define-server.php8522.0122.6268.61

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: Please add at least on tag
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

define-server/define-server.php Passed 13 tests

Analyzing the main PHP file in "DEFINE SERVER" version 1.0.1
139 characters long description:
DEFINE SERVER can help us to define the 'downloadserver' and the 'apiserver',it's help China's user solve '429 Too Many Requests' and more.

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
Everything looks great! No dangerous files found in this plugin235 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23858205
Markdown126030

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.41
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin