89% queerify

Code Review | Queerify

WordPress plugin Queerify scored89%from 54 tests.

About plugin

  • Plugin page: queerify
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.4.1
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: May 20, 2020
  • Number of updates: 11
  • Update frequency: every 1.0 days
  • Top authors: imoptimal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.23ms] Passed 4 tests

Server-side resources used by Queerify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.79 ▼1.30
Dashboard /wp-admin3.38 ▲0.0752.26 ▲3.53
Posts /wp-admin/edit.php3.49 ▲0.1346.55 ▲1.65
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.80 ▼3.22
Media Library /wp-admin/upload.php3.30 ▲0.0737.36 ▲1.96
Queerify /wp-admin/options-general.php?page=queerify_settings3.2729.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Queerify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲21613.68 ▼0.697.16 ▲5.0843.90 ▼4.73
Dashboard /wp-admin2,207 ▲225.87 ▼0.1597.72 ▼3.5539.33 ▼5.45
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0238.36 ▲1.6432.39 ▼4.50
Add New Post /wp-admin/post-new.php1,536 ▲323.65 ▲0.16602.82 ▼75.7747.50 ▼7.51
Media Library /wp-admin/upload.php1,392 ▲74.16 ▼0.0495.04 ▼10.1941.97 ▼0.70
Queerify /wp-admin/options-general.php?page=queerify_settings9621.8831.3442.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === queerify === )
The official readme.txt is a good inspiration

queerify/queerify.php 92% from 13 tests

This is the main PHP file of "Queerify" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 393 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin670 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP35687391
CSS4173140
JavaScript4812139

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
14 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/img/gay.png2.32KB2.35KB0.00%
resources/img/genderqueer.png1.38KB1.40KB0.00%
resources/img/asexual.png1.48KB1.49KB0.00%
resources/img/stars.png38.60KB39.24KB0.00%
resources/img/imoptimal-logo-white.png3.32KB3.62KB0.00%