84% simple-pinterest-feeds

Code Review | Simple Pinterest Feeds

WordPress plugin Simple Pinterest Feeds scored84%from 54 tests.

About plugin

  • Plugin page: simple-pinterest-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 24, 2016
  • Latest release: Dec 24, 2016
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: amybeagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,064 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.25ms] Passed 4 tests

Analyzing server-side resources used by Simple Pinterest Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.28 ▼8.89
Dashboard /wp-admin3.35 ▲0.0553.03 ▲1.48
Posts /wp-admin/edit.php3.47 ▲0.1148.94 ▼6.40
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.63 ▼11.28
Media Library /wp-admin/upload.php3.27 ▲0.0537.88 ▼2.44
Simple Pinterest Feeds /wp-admin/options-general.php?page=simple-pinterest-feeds/simple-pinterest-feeds.php3.2433.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Pinterest Feeds
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.31 ▲0.0711.09 ▲9.1647.03 ▲0.09
Dashboard /wp-admin2,224 ▲215.84 ▲0.96106.76 ▼5.3836.63 ▼9.03
Posts /wp-admin/edit.php2,109 ▲62.13 ▲0.1138.56 ▼3.3734.09 ▼4.31
Add New Post /wp-admin/post-new.php1,547 ▲1623.27 ▼0.12614.51 ▼145.6652.29 ▼9.22
Media Library /wp-admin/upload.php1,409 ▲64.39 ▲0.25104.60 ▼13.9443.74 ▼7.56
Simple Pinterest Feeds /wp-admin/options-general.php?page=simple-pinterest-feeds/simple-pinterest-feeds.php8662.0625.9338.57

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-pinterest-feeds/simple-pinterest-feeds.php:127

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: pinterest profile widget plugin, simple pinterest feeds, pinterest slider, pinterest

simple-pinterest-feeds/simple-pinterest-feeds.php Passed 13 tests

Analyzing the main PHP file in "Simple Pinterest Feeds" version 1.0
78 characters long description:
Simple Pinterest Feeds - Quick, small and easy Pinterest widget for wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin306 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13234198
CSS100104
HTML1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/spts_icon.png1.80KB1.31KB▼ 27.26%