89% unoapp-protects-wp-admin

Code Review | Unoapp Protect WP Admin

WordPress plugin Unoapp Protect WP Admin scored89%from 54 tests.

About plugin

  • Plugin page: unoapp-protects-w...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Jun 15, 2018
  • Latest release: May 19, 2022
  • Number of updates: 18
  • Update frequency: every 79.7 days
  • Top authors: unoapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲6.07ms] Passed 4 tests

Analyzing server-side resources used by Unoapp Protect WP Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0948.28 ▲10.75
Dashboard /wp-admin3.38 ▲0.0849.85 ▲4.50
Posts /wp-admin/edit.php3.49 ▲0.1450.56 ▲3.95
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.35 ▲6.24
Media Library /wp-admin/upload.php3.30 ▲0.0843.31 ▲9.57
WP-Admin Advanced Security /wp-admin/options-general.php?page=unopwa-settings3.2735.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Unoapp Protect WP Admin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▲0.011.57 ▼0.1342.43 ▼2.89
Dashboard /wp-admin2,199 ▲325.55 ▼0.0786.78 ▼7.5638.60 ▼1.82
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0633.99 ▼6.1135.80 ▼6.07
Add New Post /wp-admin/post-new.php1,529 ▲323.55 ▲0.04667.26 ▲65.1860.36 ▼0.72
Media Library /wp-admin/upload.php1,407 ▲104.15 ▼0.0394.66 ▼6.9041.74 ▼5.22
WP-Admin Advanced Security /wp-admin/options-general.php?page=unopwa-settings8901.9821.4531.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
The official readme.txt might help

unoapp-protects-wp-admin/unoapp-protects-wp-admin.php 92% from 13 tests

Analyzing the main PHP file in "Unoapp Protect WP Admin" version 1.1
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin402 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210265402

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions28
▷ Named functions28100.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
4 PNG files occupy 0.41MB with 0.27MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png15.61KB5.96KB▼ 61.79%
screenshot-1.png287.00KB94.46KB▼ 67.09%
screenshot-4.png97.07KB24.29KB▼ 74.98%
screenshot-2.png19.37KB7.19KB▼ 62.87%