10% easy-blog-ideas

Code Review | Easy Blog Ideas

WordPress plugin Easy Blog Ideas scored10%from 54 tests.

About plugin

  • Plugin page: easy-blog-ideas
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 19, 2016
  • Latest release: Jun 15, 2017
  • Number of updates: 13
  • Update frequency: every 13.5 days
  • Top authors: sviaud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,027 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php+66
    mkdir(): File exists

Server metrics [RAM: ▼1.52MB] [CPU: ▼49.77ms] Passed 4 tests

A check of server-side resources used by Easy Blog Ideas
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.47 ▼0.996.73 ▼35.87
Dashboard /wp-admin2.49 ▼0.829.13 ▼39.31
Posts /wp-admin/edit.php2.49 ▼0.877.52 ▼36.71
Add New Post /wp-admin/post-new.php2.49 ▼3.407.09 ▼87.18
Media Library /wp-admin/upload.php2.49 ▼0.7410.22 ▼23.32
Email Alerts /wp-admin/edit.php?post_type=pig_email2.497.39
Bookmarks /wp-admin/edit.php?post_type=pig_bookmark2.498.01
Find Ideas /wp-admin/admin.php?page=__pig_2.499.99
Go Pro /wp-admin/admin.php?page=__pig_12.498.38

Server storage [IO: ▲0.20MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
db_upgraded
__pig_show-images
can_compress_scripts
widget_theysaidso_widget
__pig_searches-left-free
widget_recent-posts
__pig_defaults
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Blog Ideas
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲16013.18 ▼1.191.92 ▼0.2843.56 ▼1.00
Dashboard /wp-admin2,292 ▲1045.91 ▲0.85112.98 ▲9.2443.34 ▼0.89
Posts /wp-admin/edit.php2,138 ▲522.05 ▲0.0835.57 ▲0.3632.29 ▼1.09
Add New Post /wp-admin/post-new.php1,558 ▲2523.25 ▲0.28650.20 ▼8.2937.82 ▼15.42
Media Library /wp-admin/upload.php1,438 ▲474.15 ▼0.0586.63 ▼11.8141.27 ▼8.32
Email Alerts /wp-admin/edit.php?post_type=pig_email1,1022.0335.6030.75
Bookmarks /wp-admin/edit.php?post_type=pig_bookmark1,1952.0035.3831.78
Find Ideas /wp-admin/admin.php?page=__pig_9091.8426.8330.27
Go Pro /wp-admin/admin.php?page=__pig_18511.8025.1328.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php+66
    mkdir(): File exists
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=__pig_1
    • > Warning in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php+66
    mkdir(): File exists
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=__pig_1
    • > Notice in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php+443
    Undefined index: free
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=__pig_1
    • > Notice in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php+815
    Undefined index: pro
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=__pig_1
    • > Notice in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php+443
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=__pig_
    • > Notice in wp-content/plugins/easy-blog-ideas/resources/admin/includes/settings.php+45
    Undefined index: search-q

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-blog-ideas/resources/admin/includes/gopro.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-blog-ideas/resources/admin/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/easy-blog-ideas/easy-blog-ideas.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-blog-ideas/resources/admin/includes/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-blog-ideas/resources/admin/includes/messages.php:5
    • > PHP Notice
      Undefined variable: show_images in wp-content/plugins/easy-blog-ideas/resources/admin/includes/search.php on line 91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-blog-ideas/resources/admin/includes/search.php:92
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-blog-ideas/resources/admin/includes/email.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt is a good inspiration

easy-blog-ideas/easy-blog-ideas.php 85% from 13 tests

The primary PHP file in "Easy Blog Ideas" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,185 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8180361,569
CSS1951499
JavaScript1140117

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity131.00
▷ Minimum class complexity131.00
▷ Maximum class complexity131.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods59
▷ Static methods1728.81%
▷ Public methods4983.05%
▷ Protected methods00.00%
▷ Private methods1016.95%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/bookmark-hover.png19.98KB1.23KB▼ 93.84%
resources/images/draft-hover.png19.46KB1.10KB▼ 94.33%
resources/images/in.png0.33KB0.34KB0.00%
resources/images/g+.png0.35KB0.36KB0.00%
resources/images/blank.png1.00KB1.01KB0.00%