100% gallery-of-animated-posts

Code Review | Gallery of Animated Posts

WordPress plugin Gallery of Animated Posts scored 100% from 54 tests.

About plugin

  • Plugin page: gallery-of-animat...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 5.8.1
  • First release: Dec 11, 2016
  • Latest release: Dec 16, 2016
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: hogh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 654 total downloads


Plugin footprint Passed 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.03MB] [CPU: ▼937.25ms] Passed 4 tests

Server-side resources used by Gallery of Animated Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0440.23 ▼0.36
Dashboard /wp-admin3.09 ▲0.0357.03 ▲2.81
Posts /wp-admin/edit.php3.17 ▲0.0650.02 ▼7.21
Add New Post /wp-admin/post-new.php5.45 ▲0.0192.62 ▼3,717.35
Media Library /wp-admin/upload.php3.03 ▲0.0335.83 ▼24.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gallery of Animated Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲22816.19 ▲0.6315.45 ▲6.7350.33 ▲3.91
Dashboard /wp-admin2,970 ▲366.14 ▲0.16173.19 ▲20.29115.08 ▼0.58
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0267.41 ▼1.3693.22 ▲0.67
Add New Post /wp-admin/post-new.php3,689 ▲2,10815.07 ▼3.27462.76 ▼138.83111.03 ▼104.94
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.02165.81 ▼76.35121.21 ▼272.80

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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

gallery-of-animated-posts/gallery-of-animated-posts.php Passed 13 tests

"Gallery of Animated Posts" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Display a gallery of animated posts unsing a shortcode for theme Gridsby.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin278 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods14.55%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG files were detected