84% wpnettermine

Code Review | WPNetTermine

WordPress plugin WPNetTermine scored84%from 54 tests.

About plugin

  • Plugin page: wpnettermine
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 20, 2014
  • Latest release: Oct 31, 2014
  • Number of updates: 10
  • Update frequency: every 1.1 days
  • Top authors: zottto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /546 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.96ms] Passed 4 tests

A check of server-side resources used by WPNetTermine
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.46 ▼3.80
Dashboard /wp-admin3.37 ▲0.0654.15 ▲5.14
Posts /wp-admin/edit.php3.48 ▲0.1246.23 ▼8.34
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.61 ▼20.15
Media Library /wp-admin/upload.php3.29 ▲0.0640.87 ▲4.45
WPNetTermine /wp-admin/options-general.php?page=wpnettermine3.2933.27

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

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

Browser metrics Passed 4 tests

WPNetTermine: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.19 ▼0.131.70 ▲0.0443.29 ▲0.98
Dashboard /wp-admin2,196 ▲195.54 ▼0.0297.33 ▲2.3550.20 ▲4.45
Posts /wp-admin/edit.php2,101 ▲11.99 ▲0.0336.15 ▼3.5834.72 ▼2.82
Add New Post /wp-admin/post-new.php1,531 ▲523.24 ▲0.10670.63 ▼13.0849.59 ▼1.25
Media Library /wp-admin/upload.php1,404 ▲44.23 ▼0.01108.45 ▲3.1146.91 ▼1.49
WPNetTermine /wp-admin/options-general.php?page=wpnettermine1,0232.1823.4434.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpnettermine/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: hausmanager, booking, nettermine

wpnettermine/wpnettermine.php Passed 13 tests

The entry point to "WPNetTermine" version 0.0.3 is a PHP file that has certain tags in its header comment area
84 characters long description:
WordPress integration for the NetTermine module of HausManager (www.hausmanager.de).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected690 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6121225401
JavaScript24447196
PO File1377893
CSS1010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.50
▷ Minimum class complexity11.00
▷ Maximum class complexity20.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods836.36%
▷ Public methods1463.64%
▷ Protected methods00.00%
▷ Private methods836.36%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.32MB with 0.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png140.89KB41.15KB▼ 70.79%
assets/screenshot-1.png183.53KB57.42KB▼ 68.72%