84% mcping

Code Review | MCPing

WordPress plugin MCPing scored 84% from 54 tests.

About plugin

  • Plugin page: mcping
  • Plugin version: 1.1
  • PHP compatiblity: 5.5.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Feb 15, 2019
  • Number of updates: 9
  • Update frequency: every 49.9 days
  • Top authors: tutorialwork (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,382 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
Install script ran successfully

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

This is a short check of server-side resources used by MCPing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.48 ▼3.10
Dashboard /wp-admin3.34 ▲0.0349.59 ▲2.38
Posts /wp-admin/edit.php3.39 ▲0.0345.78 ▼5.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.03 ▼16.69
Media Library /wp-admin/upload.php3.26 ▲0.0334.72 ▼0.81

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MCPing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.33 ▼1.134.62 ▲2.8239.52 ▲1.23
Dashboard /wp-admin2,222 ▲345.86 ▼0.0499.08 ▼6.1038.40 ▼8.25
Posts /wp-admin/edit.php2,102 ▲102.02 ▼0.0236.35 ▼3.2734.00 ▼3.31
Add New Post /wp-admin/post-new.php1,546 ▲923.38 ▲0.42577.03 ▼40.4150.72 ▼2.27
Media Library /wp-admin/upload.php1,404 ▲134.20 ▲0.0293.89 ▼12.0040.78 ▼8.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mcping/mcping.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

mcping/mcping.php Passed 13 tests

"MCPing" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
This plugin shows if your Minecraft server is online or offline.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected206 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1648206

PHP code Passed 2 tests

Analyzing 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.34
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%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin