89% nevobo-api

Code Review | Nevobo API

WordPress plugin Nevobo API scored89%from 54 tests.

About plugin

  • Plugin page: nevobo-api
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Apr 26, 2020
  • Number of updates: 22
  • Update frequency: every 10.8 days
  • Top authors: danie192 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,022 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.82ms] Passed 4 tests

An overview of server-side resources used by Nevobo API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1935.66 ▼6.32
Dashboard /wp-admin3.51 ▲0.2145.34 ▼2.47
Posts /wp-admin/edit.php3.62 ▲0.2743.85 ▼6.69
Add New Post /wp-admin/post-new.php6.11 ▲0.2381.98 ▼3.79
Media Library /wp-admin/upload.php3.43 ▲0.2136.72 ▲3.79

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 26 new options
New WordPress options
widget_theysaidso_widget
nvb_algemeen-htmlstyle
nvb_fixture-route
nvb_table-maxrow
nvb_algemeen-style
nvb_fixture-maxrow
db_upgraded
nvb_algemeen-locatie
nvb_result-maxname
nvb_table-maxname
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nevobo API
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14713.73 ▼0.884.67 ▲2.8138.73 ▼8.48
Dashboard /wp-admin2,243 ▲555.03 ▼0.03103.25 ▼4.6878.70 ▲37.32
Posts /wp-admin/edit.php2,125 ▲332.32 ▲0.2234.27 ▼10.4433.81 ▼4.80
Add New Post /wp-admin/post-new.php1,699 ▲16323.09 ▼0.11691.72 ▲37.9330.66 ▼22.39
Media Library /wp-admin/upload.php1,422 ▲314.42 ▲0.23116.50 ▲19.0349.29 ▲4.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 26 options
    • nvb_result-maxrow
    • nvb_table-maxrow
    • db_upgraded
    • can_compress_scripts
    • nvb_algemeen-icon
    • nvb_fixture-ical
    • theysaidso_admin_options
    • nvb_fixture-location
    • widget_theysaidso_widget
    • nvb_algemeen-datumtijd
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #3 (Example Style 2)
Please take inspiration from this readme.txt

nevobo-api/nevobo-api.php 85% from 13 tests

"Nevobo API" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "5.2")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin25,897 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS43,0713824,740
PHP7200761,153
JavaScript1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.83
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2477.42%
▷ Protected methods00.00%
▷ Private methods722.58%
Functions0
▷ Named functions00.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
7 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/nvb_icon.png15.51KB8.68KB▼ 44.02%
admin/images/nvb_logo_narrow_white.png28.24KB15.17KB▼ 46.29%
admin/images/nvb_icon_small.png4.87KB2.78KB▼ 42.91%
admin/images/nvb_logo_white.png34.85KB19.74KB▼ 43.36%
admin/images/nvb_logo.png124.87KB70.11KB▼ 43.86%