56% yesnology

Code Review | YesNology WordPress Plugin

WordPress plugin YesNology WordPress Plugin scored56%from 54 tests.

About plugin

  • Plugin page: yesnology
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Jan 16, 2023
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: lbonazzi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /112 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.81MB] [CPU: ▲280.58ms] 75% from 4 tests

Server-side resources used by YesNology WordPress Plugin
It is recommended to improve the following
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 280.58ms on /wp-admin/admin.php?page=yesnology_display)
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.07307.98 ▲267.57
Dashboard /wp-admin3.13 ▼0.17364.03 ▲310.76
Posts /wp-admin/edit.php3.13 ▼0.22350.64 ▲306.93
Add New Post /wp-admin/post-new.php3.13 ▼2.76334.83 ▲237.07
Media Library /wp-admin/upload.php3.13 ▼0.10677.13 ▲641.95
Setup /wp-admin/admin.php?page=yesnology3.13352.77
Design /wp-admin/admin.php?page=yesnology_display3.13360.77

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for YesNology WordPress Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲17414.47 ▲0.0629.44 ▲27.3042.00 ▼1.31
Dashboard /wp-admin2,223 ▲344.87 ▼0.26106.91 ▼16.4873.93 ▲28.05
Posts /wp-admin/edit.php2,118 ▲291.98 ▼0.0134.91 ▼3.6733.93 ▲0.71
Add New Post /wp-admin/post-new.php1,546 ▲1323.31 ▲0.12734.89 ▲62.9856.59 ▲1.46
Media Library /wp-admin/upload.php1,417 ▲264.19 ▼0.0595.87 ▼4.6573.14 ▲27.83
Setup /wp-admin/admin.php?page=yesnology9332.0427.1227.98
Design /wp-admin/admin.php?page=yesnology_display1,5596.84131.7798.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/yesnology/admin/class-yesnology-admin.php+126
    Undefined property: stdClass::$access_token
  • Uninstaller has failed for this plugin, leaving 41 files (1.81MB) in the plugin directory
    • (new file) LICENSE.txt
    • (new file) README.txt
    • (new file) admin/submenu_page.php
    • (new file) admin/index.php
    • (new file) admin/partials/yesnology-admin-display.php
    • (new file) admin/css/yesnology-admin.css
    • (new file) admin/class-yesnology-admin.php
    • (new file) admin/logo-compatto.png
    • (new file) admin/js/yesnology-admin.js
    • (new file) includes/class-yesnology-activator.php
    • ...
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yesnology_display
    • > Notice in wp-content/plugins/yesnology/admin/class-yesnology-admin.php+126
    Undefined property: stdClass::$access_token
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yesnology
    • > Warning in wp-content/plugins/yesnology/admin/submenu_page.php+105
    Invalid argument supplied for foreach()

SRP 50% from 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/yesnology/public/partials/yesnology-public-display.php
    • > /wp-content/plugins/yesnology/admin/partials/yesnology-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Requires php: Invalid plugin version format
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in yesnology/assets to your readme.txt
The official readme.txt is a good inspiration

yesnology/yesnology.php 77% from 13 tests

The main file in "YesNology WordPress Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.0.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 811 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

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 detected1,821 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP16215774995
PO File4132171439
JavaScript61399200
CSS52548187

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.88
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods814.55%
▷ Public methods4276.36%
▷ Protected methods00.00%
▷ Private methods1323.64%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/flags@2x.png170.28KB68.04KB▼ 60.04%
public/img/flags.png69.20KB23.42KB▼ 66.16%
admin/logo-compatto.png0.89KB1.27KB0.00%