84% server-ip-memory-usage

Code Review | Server IP & Memory Usage Display

WordPress plugin Server IP & Memory Usage Display scored84%from 54 tests.

About plugin

  • Plugin page: server-ip-memory-...
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Sep 23, 2023
  • Number of updates: 72
  • Update frequency: every 50.2 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

39 reviews

Install metrics

40,000+ active /256,321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Server IP & Memory Usage Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0246.65 ▼10.66
Dashboard /wp-admin3.33 ▲0.0356.18 ▲1.35
Posts /wp-admin/edit.php3.38 ▲0.0352.08 ▲1.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.72 ▼15.25
Media Library /wp-admin/upload.php3.26 ▲0.0338.49 ▼1.46

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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Server IP & Memory Usage Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.74 ▲0.181.72 ▼0.3144.78 ▲0.32
Dashboard /wp-admin2,195 ▲155.62 ▲0.09113.42 ▲14.5843.85 ▲0.83
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0336.00 ▲0.2535.48 ▲0.79
Add New Post /wp-admin/post-new.php1,529 ▼723.02 ▼0.09645.69 ▼53.3359.07 ▲7.72
Media Library /wp-admin/upload.php1,406 ▲94.19 ▲0.0696.49 ▼10.4440.29 ▼6.18

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
9 plugin tags: admin, ips, php, info, memory-limit...

server-ip-memory-usage/server-ip-memory-usage.php Passed 13 tests

"Server IP & Memory Usage Display" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Show the memory limit, current memory usage and IP address in the admin footer.

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 plugin123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172975
PO File1101048

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin