84% orcsnet-from-inditip

Code Review | ORCSNET from IndiTip

WordPress plugin ORCSNET from IndiTip scored84%from 54 tests.

About plugin

  • Plugin page: orcsnet-from-inditip
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: Mar 25, 2019
  • Number of updates: 35
  • Update frequency: every 15.2 days
  • Top authors: inditip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by ORCSNET from IndiTip
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.41 ▲4.94
Dashboard /wp-admin3.34 ▼0.0144.40 ▼25.10
Posts /wp-admin/edit.php3.39 ▲0.0345.75 ▼2.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.73 ▼17.92
Media Library /wp-admin/upload.php3.26 ▲0.0336.38 ▲4.98
Orcsnet /wp-admin/options-general.php?page=OrcsNet_from_inditip_settings3.2129.53

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
OrcsNet_from_inditip_version
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by ORCSNET from IndiTip
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.96 ▼0.404.91 ▲3.2038.55 ▼0.23
Dashboard /wp-admin2,214 ▲354.87 ▼0.95110.74 ▼3.2039.76 ▼5.40
Posts /wp-admin/edit.php2,100 ▲112.03 ▼0.1134.31 ▼2.4929.11 ▼5.24
Add New Post /wp-admin/post-new.php1,521 ▲223.02 ▼0.04672.78 ▲8.3958.50 ▼13.61
Media Library /wp-admin/upload.php1,393 ▲54.23 ▲0.0497.96 ▼5.8141.96 ▼2.41
Orcsnet /wp-admin/options-general.php?page=OrcsNet_from_inditip_settings8431.9233.0426.66

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • OrcsNet_from_inditip_version
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=OrcsNet_from_inditip_settings
    • > Notice in wp-content/plugins/orcsnet-from-inditip/includes/lib/class-orcsnet-from-inditip-admin-api.php+75
    Undefined index: placeholder

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 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
4 plugin tags: plugin, inditip, orcsnet, wordpress

orcsnet-from-inditip/orcsnet-from-inditip.php 92% from 13 tests

The entry point to "ORCSNET from IndiTip" version 1.0.12 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "4.0")

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
No dangerous file extensions were detected763 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8229460657
JavaScript4130106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.60
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods4093.02%
▷ Protected methods00.00%
▷ Private methods36.98%
Functions1
▷ Named functions1100.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