90% my-eyes-are-up-here

Code Review | My Eyes Are Up Here

WordPress plugin My Eyes Are Up Here scored 90% from 54 tests.

About plugin

Code review

54 tests

User reviews

31 reviews

Install metrics

4,000+ active / 151,352 total downloads

Benchmarks

Plugin footprint 83% from 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.07MB] [CPU: ▼1.10ms] Passed 4 tests

Server-side resources used by My Eyes Are Up Here
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.05 ▼1.15
Dashboard /wp-admin3.38 ▲0.0847.86 ▼3.81
Posts /wp-admin/edit.php3.49 ▲0.1446.72 ▼1.71
Add New Post /wp-admin/post-new.php5.98 ▲0.1087.51 ▲2.28
Media Library /wp-admin/upload.php3.30 ▲0.0837.83 ▲3.82

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Eyes Are Up Here
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5014.64 ▼0.111.67 ▼0.3547.36 ▲5.62
Dashboard /wp-admin2,213 ▲256.00 ▲1.12107.59 ▼1.9138.74 ▼2.60
Posts /wp-admin/edit.php2,096 ▲103.01 ▲0.9839.18 ▲2.4931.63 ▼1.04
Add New Post /wp-admin/post-new.php1,535 ▼724.02 ▲5.75592.38 ▼40.7670.75 ▲3.05
Media Library /wp-admin/upload.php1,398 ▲135.36 ▲1.17102.31 ▼1.5342.13 ▼1.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: image editing, thumbnails, image, featured image

my-eyes-are-up-here/my-eyes-are-up-here.php Passed 13 tests

This is the main PHP file of "My Eyes Are Up Here" version 1.1.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Detects faces during thumbnail cropping and moves the crop position accordingly.

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
Good job! No executable or dangerous file extensions detected995 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP4110224401
JavaScript39575398
CSS215094
JSON30070
Markdown112032

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods27
▷ Static methods622.22%
▷ Public methods1866.67%
▷ Protected methods933.33%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin