94% deskero

Code Review | Deskero for WordPress

WordPress plugin Deskero for WordPress scored 94% from 54 tests.

About plugin

  • Plugin page: deskero
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Aug 1, 2013
  • Latest release: Aug 1, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: fausto@deskero.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 727 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Deskero for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.14 ▲9.25
Dashboard /wp-admin3.08 ▲0.0246.92 ▲5.22
Posts /wp-admin/edit.php3.13 ▲0.0241.53 ▼0.91
Add New Post /wp-admin/post-new.php5.43 ▲0.0081.89 ▼577.88
Media Library /wp-admin/upload.php3.02 ▲0.0230.79 ▲0.65

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Deskero for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲10415.90 ▼0.1510.55 ▲0.2943.56 ▼8.36
Dashboard /wp-admin2,984 ▲505.94 ▼0.22148.54 ▼0.76141.08 ▲28.92
Posts /wp-admin/edit.php2,775 ▲362.70 ▼0.0074.44 ▲5.4185.25 ▼4.06
Add New Post /wp-admin/post-new.php1,630 ▼4021.50 ▲2.36307.54 ▼99.98103.95 ▼7.41
Media Library /wp-admin/upload.php1,843 ▲335.02 ▼0.04147.32 ▲2.33145.35 ▲28.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deskero/deskero.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (All the options in the Setting Page) image required
The official readme.txt might help

deskero/deskero.php Passed 13 tests

The main PHP script in "Deskero for WordPress" version 1.0 is automatically included on every request by WordPress
21 characters long description:
Deskero for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected152 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2181881
PHP145868
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/deskero_setting_page_icon.png1.71KB1.57KB▼ 8.20%
images/deskero_icon.png0.76KB0.89KB0.00%