84% wp-egosearch

Code Review | WP egosearch

WordPress plugin WP egosearch scored 84% from 54 tests.

About plugin

  • Plugin page: wp-egosearch
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2015
  • Latest release: Mar 15, 2015
  • Number of updates: 58
  • Update frequency: every 0.1 days
  • Top authors: smkn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP egosearch
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.52 ▼2.16
Dashboard /wp-admin3.34 ▲0.0442.72 ▼7.88
Posts /wp-admin/edit.php3.39 ▲0.0347.42 ▼0.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.97 ▲5.05
Media Library /wp-admin/upload.php3.26 ▲0.0337.16 ▲3.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP egosearch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.26 ▼1.151.71 ▼0.1338.17 ▼6.60
Dashboard /wp-admin2,242 ▲514.86 ▼0.05108.77 ▼9.2344.67 ▼4.16
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0538.46 ▲1.7534.93 ▼0.96
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.19589.45 ▼87.9951.29 ▼7.78
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.04100.35 ▼10.0440.34 ▼13.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-egosearch/wp-egosearch.php:40

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)
No browser errors were detected

Optimizations

Plugin configuration 97% 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 your attention:
  • Screenshots: These screenshots do not have images: #1 (Dashboard widget.), #2 (Plugin options.)
The official readme.txt is a good inspiration

wp-egosearch/wp-egosearch.php Passed 13 tests

"WP egosearch" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Displays the egosearch(search your site URL/sitename) results of twitter in the dashboard.

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 plugin155 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11825125
PO File18830

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png33.99KB15.08KB▼ 55.64%
screenshot-1.png29.40KB16.54KB▼ 43.75%