84% auranet-recent-photos

Code Review | Auranet Recent Photos

WordPress plugin Auranet Recent Photos scored 84% from 54 tests.

About plugin

  • Plugin page: auranet-recent-ph...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2020
  • Latest release: Nov 19, 2020
  • Number of updates: 18
  • Update frequency: every 0.8 days
  • Top authors: Karra Max (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 511 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.24ms] Passed 4 tests

A check of server-side resources used by Auranet Recent Photos
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.84 ▼1.59
Dashboard /wp-admin3.37 ▲0.0645.67 ▲0.38
Posts /wp-admin/edit.php3.42 ▲0.0645.45 ▼2.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.98 ▼8.91
Media Library /wp-admin/upload.php3.29 ▲0.0637.94 ▲7.23
Aura Fotos Recentes /wp-admin/options-general.php?page=ARP_recent_photos_menu3.2635.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Auranet Recent Photos
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.27 ▼1.031.75 ▼1.0643.17 ▼5.65
Dashboard /wp-admin2,216 ▲255.88 ▲0.72101.60 ▼8.4542.89 ▲3.22
Posts /wp-admin/edit.php2,099 ▲72.05 ▲0.0638.75 ▼0.1732.94 ▼4.34
Add New Post /wp-admin/post-new.php1,523 ▼1222.96 ▼0.29631.15 ▲7.1253.95 ▼0.33
Media Library /wp-admin/upload.php1,401 ▲164.29 ▲0.0795.95 ▼7.8041.82 ▼0.73
Aura Fotos Recentes /wp-admin/options-general.php?page=ARP_recent_photos_menu9351.7229.7731.52

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just 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 plugin_dir_url() in wp-content/plugins/auranet-recent-photos/auranet-recent-photos.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: fotos, instagram, imagens, perfil, simples

auranet-recent-photos/auranet-recent-photos.php Passed 13 tests

The entry point to "Auranet Recent Photos" version 2.0 is a PHP file that has certain tags in its header comment area
137 characters long description:
Auranet Recent Photos exibe as últimas fotos de um usuário do Instagram previamente configuradas em seu site Wordpress. Use [instagram]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,021 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213837829
PHP127136
PO File1173453
CSS1002
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.24
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%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/jscolor/hs.png2.62KB7.54KB0.00%
js/jscolor/hv.png2.80KB7.32KB0.00%