84% wpsysinfo

Code Review | WPSysInfo

WordPress plugin WPSysInfo scored84%from 54 tests.

About plugin

  • Plugin page: wpsysinfo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.3-6.0
  • WordPress version: 6.3.1
  • First release: Jul 23, 2022
  • Latest release: Jul 24, 2022
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: dravion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /157 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
Installer ran successfully

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

An overview of server-side resources used by WPSysInfo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.70 ▼0.58
Dashboard /wp-admin3.32 ▲0.0248.34 ▼3.70
Posts /wp-admin/edit.php3.37 ▲0.0250.79 ▼7.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.77 ▼17.27
Media Library /wp-admin/upload.php3.25 ▲0.0241.55 ▲3.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPSysInfo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.38 ▲0.101.72 ▼0.1745.97 ▲2.96
Dashboard /wp-admin2,210 ▲395.56 ▼0.0195.37 ▲2.0139.55 ▼6.76
Posts /wp-admin/edit.php2,115 ▲122.00 ▼0.0138.16 ▼3.4836.45 ▼2.29
Add New Post /wp-admin/post-new.php1,385 ▼14116.68 ▼6.81577.93 ▼140.4153.83 ▼2.45
Media Library /wp-admin/upload.php1,418 ▲184.18 ▼0.0396.78 ▼9.0939.23 ▼5.15

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

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsysinfo/wpsysinfo.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: systeminfo, technical

wpsysinfo/wpsysinfo.php Passed 13 tests

"WPSysInfo" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Shows Systeminfo of your Wordpress Hosting environment

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
Success! There were no dangerous files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171554

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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 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
There were not PNG files found in your plugin