89% felix-responsive-pinterest-feed

Code Review | Felix - Responsive Pinterest Feed

WordPress plugin Felix - Responsive Pinterest Feed scored89%from 54 tests.

About plugin

  • Plugin page: felix-responsive-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 29, 2016
  • Latest release: Dec 29, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: rufataskerov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /795 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.46ms] Passed 4 tests

This is a short check of server-side resources used by Felix - Responsive Pinterest Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.81 ▲3.20
Dashboard /wp-admin3.31 ▲0.0146.12 ▼0.85
Posts /wp-admin/edit.php3.36 ▲0.0147.53 ▲2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.09 ▼15.64
Media Library /wp-admin/upload.php3.24 ▲0.0134.00 ▲0.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Felix - Responsive Pinterest Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.33 ▼1.022.03 ▲0.4445.33 ▲5.42
Dashboard /wp-admin2,221 ▲394.94 ▼0.9796.73 ▼5.7881.62 ▲37.30
Posts /wp-admin/edit.php2,107 ▲211.98 ▼0.0836.47 ▼1.6435.85 ▲1.04
Add New Post /wp-admin/post-new.php1,528 ▲1423.35 ▲5.87691.41 ▼0.2165.04 ▲13.38
Media Library /wp-admin/upload.php1,403 ▲154.23 ▲0.05121.83 ▲12.1147.54 ▲0.56

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

felix-responsive-pinterest-feed/felix-pinterest.php 85% from 13 tests

The main PHP file in "Felix - Responsive Pinterest Feed" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 172 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("felix-responsive-pinterest-feed.php" instead of "felix-pinterest.php")

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
No dangerous file extensions were detected11,520 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2661,3545,840
CSS34721915,312
PHP5439368

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No 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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants9
▷ Global constants9100.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 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/felix-wp-icon.png1.67KB0.82KB▼ 50.93%
assets/img/logo-felix.png4.37KB2.20KB▼ 49.69%