90% nebucore

Code Review | NebuCore

WordPress plugin NebuCore scored 90% from 54 tests.

About plugin

  • Plugin page: nebucore
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Aug 16, 2018
  • Latest release: Nov 15, 2018
  • Number of updates: 16
  • Update frequency: every 5.8 days
  • Top authors: nebucore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.10ms] Passed 4 tests

This is a short check of server-side resources used by NebuCore
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.70 ▼4.78
Dashboard /wp-admin3.31 ▲0.0144.57 ▼6.81
Posts /wp-admin/edit.php3.36 ▲0.0041.25 ▼7.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.54 ▼5.17
Media Library /wp-admin/upload.php3.23 ▲0.0037.52 ▲1.39

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for NebuCore
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4114.47 ▲0.231.86 ▼0.3543.75 ▼1.15
Dashboard /wp-admin2,221 ▲504.86 ▼1.01109.17 ▼1.4240.49 ▼11.39
Posts /wp-admin/edit.php2,097 ▲82.04 ▼0.0036.55 ▼0.0334.15 ▼2.86
Add New Post /wp-admin/post-new.php1,554 ▲1618.43 ▼4.34597.28 ▼56.0767.10 ▲24.67
Media Library /wp-admin/upload.php1,397 ▲124.24 ▲0.0895.53 ▼11.2543.37 ▼6.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: e-commerce, woocommerce, json, order, woo commerce...

nebucore/wc-nebucore.php 92% from 13 tests

Analyzing the main PHP file in "NebuCore" version 0.1.4
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nebucore.php" instead of "wc-nebucore.php")

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
Success! There were no dangerous files found in this plugin413 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP454208413

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.50
▷ Minimum class complexity3.00
▷ Maximum class complexity40.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods520.83%
▷ Public methods1562.50%
▷ Protected methods00.00%
▷ Private methods937.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected