94% aawp-obfuscator

Code Review | AAWP Obfuscator

WordPress plugin AAWP Obfuscator scored 94% from 54 tests.

About plugin

  • Plugin page: aawp-obfuscator
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.9.2
  • First release: Jan 6, 2022
  • Latest release: Jan 6, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: elpix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 324 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by AAWP Obfuscator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.56 ▲5.28
Dashboard /wp-admin3.41 ▲0.0132.06 ▼0.34
Posts /wp-admin/edit.php3.65 ▲0.0136.35 ▼0.49
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.38 ▼1,180.25
Media Library /wp-admin/upload.php3.30 ▲0.0027.60 ▲3.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AAWP Obfuscator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,873 ▲11916.25 ▲0.699.06 ▲3.212.37 ▼0.43
Dashboard /wp-admin2,895 ▲415.96 ▼0.21116.33 ▼18.63152.38 ▼9.02
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0063.02 ▼1.22140.51 ▼4.74
Add New Post /wp-admin/post-new.php1,661 ▼017.17 ▼4.65437.09 ▲3.31193.72 ▲34.63
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.04143.05 ▼4.87199.26 ▼1.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/aawp-obfuscator/loader.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

aawp-obfuscator/loader.php 92% from 13 tests

The main PHP file in "AAWP Obfuscator" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aawp-obfuscator.php" instead of "loader.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 plugin112 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3431073
JavaScript115027
Markdown13012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin