74% wp-admin-microblog

Code Review | WP Admin Microblog

WordPress plugin WP Admin Microblog scored 74% from 54 tests.

About plugin

  • Plugin page: wp-admin-microblog
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2010
  • Latest release: Oct 31, 2019
  • Number of updates: 83
  • Update frequency: every 42.3 days
  • Top authors: DonSalierie (59.04%)winkm89 (42.17%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active / 14,412 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.35ms] Passed 4 tests

Server-side resources used by WP Admin Microblog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.88 ▼3.62
Dashboard /wp-admin3.34 ▲0.0449.69 ▼0.20
Posts /wp-admin/edit.php3.39 ▲0.0348.37 ▼3.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.25 ▲1.64
Media Library /wp-admin/upload.php3.26 ▲0.0336.56 ▲3.06
Microblog /wp-admin/admin.php?page=wp-admin-microblog/wp-admin-microblog.php3.2741.83
Settings /wp-admin/admin.php?page=wp-admin-microblog/settings.php3.2433.73

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: 5 new tables, 6 new options
New tables
wp_admin_blog_posts
wp_admin_blog_tags
wp_admin_blog_meta
wp_admin_blog_likes
wp_admin_blog_relations
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Admin Microblog
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲23313.70 ▼0.851.75 ▲0.0332.71 ▼15.85
Dashboard /wp-admin2,349 ▲1645.48 ▲0.65108.37 ▼6.2295.42 ▲49.43
Posts /wp-admin/edit.php2,121 ▲322.00 ▲0.0137.62 ▼1.5135.34 ▲2.68
Add New Post /wp-admin/post-new.php1,542 ▲1923.22 ▼0.32730.35 ▲51.4250.77 ▼6.43
Media Library /wp-admin/upload.php1,414 ▲264.13 ▼0.1295.06 ▼5.9465.41 ▲22.26
Microblog /wp-admin/admin.php?page=wp-admin-microblog/wp-admin-microblog.php1,3243.5745.8888.84
Settings /wp-admin/admin.php?page=wp-admin-microblog/settings.php1,2422.1230.3260.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 failed, leaving 5 tables in the database
    • wp_admin_blog_likes
    • wp_admin_blog_tags
    • wp_admin_blog_relations
    • wp_admin_blog_posts
    • wp_admin_blog_meta
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-admin-microblog/core/screen.php:78
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-admin-microblog/wp-admin-microblog.php on line 51
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-admin-microblog/wp-admin-microblog.php on line 54
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-admin-microblog/wp-admin-microblog.php on line 48
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-admin-microblog/wp-admin-microblog.php on line 60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-admin-microblog/wp-admin-microblog.php:107
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-admin-microblog/wp-admin-microblog.php on line 57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Main interface), #2 (Dashboard widget), #3 (The options)
You can look at the official readme.txt

wp-admin-microblog/wp-admin-microblog.php Passed 13 tests

The primary PHP file in "WP Admin Microblog" version 3.1.1 is used by WordPress to initiate all plugin functionality
43 characters long description:
Adds a microblog in your WordPress backend.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,147 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP112767301,796
PO File44398431,013
CSS13513169
JavaScript41322169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.00
▷ Minimum class complexity2.00
▷ Maximum class complexity46.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods60
▷ Static methods60100.00%
▷ Public methods4676.67%
▷ Protected methods00.00%
▷ Private methods1423.33%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
5 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png24.07KB11.36KB▼ 52.79%
images/document-new-6.png3.17KB0.57KB▼ 81.91%
images/logo.png3.17KB0.53KB▼ 83.25%
screenshot-1.png66.33KB30.06KB▼ 54.68%
screenshot-3.png54.46KB30.72KB▼ 43.60%