84% aawp-obfuscator

Code Review | AAWP Obfuscator

WordPress plugin AAWP Obfuscator scored84%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: 6.3.1
  • 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

100+ active /2,467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by AAWP Obfuscator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.85 ▲1.07
Dashboard /wp-admin3.33 ▲0.0244.18 ▼7.53
Posts /wp-admin/edit.php3.38 ▲0.0248.89 ▲5.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.35 ▲4.08
Media Library /wp-admin/upload.php3.25 ▲0.0232.70 ▼0.39

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

AAWP Obfuscator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.74 ▼0.566.38 ▲4.6045.18 ▼3.83
Dashboard /wp-admin2,206 ▲184.84 ▼1.06107.58 ▲1.8041.74 ▲1.68
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0341.51 ▲2.4336.01 ▲3.08
Add New Post /wp-admin/post-new.php1,533 ▼523.21 ▲0.21639.08 ▼24.6855.24 ▲5.73
Media Library /wp-admin/upload.php1,388 ▲64.14 ▲0.0295.31 ▼7.1439.87 ▼5.79

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

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

The main file in "AAWP Obfuscator" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected112 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3431073
JavaScript115027
Markdown13012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin